dockerfile context change in directories
This commit is contained in:
parent
e156402275
commit
76714a0f2d
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -1,6 +1,6 @@
|
||||
node {
|
||||
checkout scm
|
||||
def dockerimage = docker.build("titanic-image", "./dockerfiles/docker-titanic")
|
||||
def dockerimage = docker.build("titanic-image")
|
||||
dockerimage.inside {
|
||||
stage('Preparation') {
|
||||
properties([
|
||||
|
@ -1,6 +1,6 @@
|
||||
node {
|
||||
checkout scm
|
||||
def dockerimage = docker.build("titanic-image", "./dockerfiles/docker-train")
|
||||
def dockerimage = docker.build("train-image", "./train")
|
||||
dockerimage.inside {
|
||||
stage('Preparation') {
|
||||
properties([
|
||||
|
23
dockerfile
Normal file
23
dockerfile
Normal file
@ -0,0 +1,23 @@
|
||||
FROM ubuntu:latest
|
||||
|
||||
RUN apt-get update --fix-missing
|
||||
RUN apt install python3-pip -y
|
||||
RUN apt install unzip -y
|
||||
RUN apt install git -y
|
||||
|
||||
RUN pip install --user kaggle
|
||||
RUN pip install --user pandas
|
||||
|
||||
|
||||
RUN ln -s ~/.local/bin/kaggle /usr/bin/kaggle
|
||||
ENV PATH="$PATH:~/.local/bin/kaggle"
|
||||
ENV KAGGLE_USERNAME="wiktorbombola"
|
||||
ENV KAGGLE_KEY=""
|
||||
|
||||
# RUN echo "alias kaggle='~/.local/bin/kaggle'" >> ~/.bashrc
|
||||
|
||||
COPY ./script.sh ./
|
||||
COPY ./learning.py ./
|
||||
|
||||
# CMD ./script.sh 300
|
||||
# CMD ./learning.py
|
19
train/dockerfile
Normal file
19
train/dockerfile
Normal file
@ -0,0 +1,19 @@
|
||||
FROM ubuntu:latest
|
||||
|
||||
RUN apt-get update --fix-missing
|
||||
RUN apt install python3-pip -y
|
||||
RUN apt install unzip -y
|
||||
RUN apt install git -y
|
||||
|
||||
RUN pip install --user pandas
|
||||
RUN pip install --user torch
|
||||
RUN pip install --user keras
|
||||
RUN pip install --user tensorflow
|
||||
RUN pip install --user scikit-learn
|
||||
|
||||
# RUN echo "alias kaggle='~/.local/bin/kaggle'" >> ~/.bashrc
|
||||
|
||||
COPY ./learning.py ./
|
||||
|
||||
# CMD ./script.sh 300
|
||||
# CMD ./learning.pyRUN pip install --user numpy
|
Loading…
Reference in New Issue
Block a user