script fix
This commit is contained in:
parent
6cbad8e595
commit
e43ddccccd
2
.gitignore
vendored
2
.gitignore
vendored
@ -151,5 +151,5 @@ crashlytics-build.properties
|
|||||||
fabric.properties
|
fabric.properties
|
||||||
|
|
||||||
# kaggle
|
# kaggle
|
||||||
.kaggle.json
|
kaggle.json
|
||||||
|
|
||||||
|
11
dockerfile
11
dockerfile
@ -1,26 +1,17 @@
|
|||||||
# Nasz obraz będzie dzidziczył z obrazu Ubuntu w wersji latest
|
|
||||||
FROM ubuntu:latest
|
FROM ubuntu:latest
|
||||||
|
|
||||||
# Instalujemy niezbędne zależności. Zwróć uwagę na flagę "-y" (assume yes)
|
|
||||||
RUN apt update && apt install -y figlet python3 python3-pip unzip
|
RUN apt update && apt install -y figlet python3 python3-pip unzip
|
||||||
RUN pip3 install --user kaggle
|
RUN pip3 install --user kaggle
|
||||||
RUN pip3 install --user pandas
|
RUN pip3 install --user pandas
|
||||||
# RUN pip3 install --user unzip
|
|
||||||
|
|
||||||
ENV PATH="/root/.local/bin:${PATH}"
|
ENV PATH="/root/.local/bin:${PATH}"
|
||||||
|
|
||||||
# Stwórzmy w kontenerze (jeśli nie istnieje) katalog /app i przejdźmy do niego (wszystkie kolejne polecenia RUN, CMD, ENTRYPOINT, COPY i ADD będą w nim wykonywane)
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Skopiujmy nasz skrypt do katalogu /app w kontenerze
|
|
||||||
COPY ./figlet-loop.sh ./
|
COPY ./figlet-loop.sh ./
|
||||||
COPY ./download.sh ./
|
COPY ./download.sh ./
|
||||||
COPY ./script.py ./
|
COPY ./script.py ./
|
||||||
COPY ./kaggle.json /root/.kaggle/kaggle.json
|
COPY ./kaggle.json /root/.kaggle/kaggle.json
|
||||||
|
|
||||||
RUN ./download.sh 117928
|
# RUN ./download.sh 117928
|
||||||
RUN python3 ./script.py
|
RUN python3 ./script.py
|
||||||
|
|
||||||
|
|
||||||
# Domyślne polecenie, które zostanie uruchomione w kontenerze po jego starcie
|
|
||||||
# CMD python ./script.py
|
|
@ -69,8 +69,8 @@ def normalize_dataset(dataset):
|
|||||||
return dataset
|
return dataset
|
||||||
|
|
||||||
|
|
||||||
# install_dependencies()
|
install_dependencies()
|
||||||
# download_dataset()
|
download_dataset()
|
||||||
unzip_package()
|
unzip_package()
|
||||||
cars = pd.read_csv('./Car_Prices_Poland_Kaggle.csv')
|
cars = pd.read_csv('./Car_Prices_Poland_Kaggle.csv')
|
||||||
df = pd.DataFrame(cars)
|
df = pd.DataFrame(cars)
|
||||||
|
Loading…
Reference in New Issue
Block a user