dockerfiles restructured
This commit is contained in:
parent
200e254c5d
commit
e156402275
|
@ -1,6 +1,6 @@
|
||||||
node {
|
node {
|
||||||
checkout scm
|
checkout scm
|
||||||
def dockerimage = docker.build("titanic-image")
|
def dockerimage = docker.build("titanic-image", "./dockerfiles/docker-titanic")
|
||||||
dockerimage.inside {
|
dockerimage.inside {
|
||||||
stage('Preparation') {
|
stage('Preparation') {
|
||||||
properties([
|
properties([
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
node {
|
node {
|
||||||
checkout scm
|
checkout scm
|
||||||
def dockerimage = docker.build("titanic-image")
|
def dockerimage = docker.build("titanic-image", "./dockerfiles/docker-train")
|
||||||
dockerimage.inside {
|
dockerimage.inside {
|
||||||
stage('Preparation') {
|
stage('Preparation') {
|
||||||
properties([
|
properties([
|
||||||
|
|
|
@ -7,11 +7,7 @@ RUN apt install git -y
|
||||||
|
|
||||||
RUN pip install --user kaggle
|
RUN pip install --user kaggle
|
||||||
RUN pip install --user pandas
|
RUN pip install --user pandas
|
||||||
RUN pip install --user numpy
|
|
||||||
RUN pip install --user torch
|
|
||||||
RUN pip install --user keras
|
|
||||||
RUN pip install --user tensorflow
|
|
||||||
RUN pip install --user scikit-learn
|
|
||||||
|
|
||||||
RUN ln -s ~/.local/bin/kaggle /usr/bin/kaggle
|
RUN ln -s ~/.local/bin/kaggle /usr/bin/kaggle
|
||||||
ENV PATH="$PATH:~/.local/bin/kaggle"
|
ENV PATH="$PATH:~/.local/bin/kaggle"
|
|
@ -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