diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..d7e4a49 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,5 @@ +FROM alpine +RUN apk add --no-cache curl wget busybox-extras netcat-openbsd python3 py3-pip bash && \ + pip install awscli && \ + apk --purge -v del py3-pip +CMD tail -f /dev/null diff --git a/docker/toolbox/Dockerfile b/docker/toolbox/Dockerfile index cae61c5..0f92007 100644 --- a/docker/toolbox/Dockerfile +++ b/docker/toolbox/Dockerfile @@ -1,5 +1,6 @@ FROM alpine -RUN apk add --no-cache curl wget busybox-extras netcat-openbsd python py-pip bash && \ +RUN apk add --no-cache curl wget busybox-extras netcat-openbsd python3 py3-pip bash && \ pip install awscli -RUN apk --purge -v del py-pip +RUN apk --purge -v del py3-pip CMD tail -f /dev/null + diff --git a/jenkinsfiles/docker_build.jenkins b/jenkinsfiles/docker_build.jenkins deleted file mode 100644 index a0547c0..0000000 --- a/jenkinsfiles/docker_build.jenkins +++ /dev/null @@ -1,42 +0,0 @@ -#!groovy -// Run docker build -properties([disableConcurrentBuilds()]) - -pipeline { - agent { - label 'master' - } - triggers { pollSCM('* * * * *') } - options { - buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10')) - timestamps() - } - stages { - stage("docker login") { - steps { - echo " ============== docker login ==================" - withCredentials([usernamePassword(credentialsId: 'dockerhub_semaev', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) { - sh """ - docker login -u $USERNAME -p $PASSWORD - """ - } - } - } - stage("create docker image") { - steps { - echo " ============== start building image ==================" - dir ('docker/toolbox') { - sh 'docker build -t semaev/toolbox:latest . ' - } - } - } - stage("docker push") { - steps { - echo " ============== start pushing image ==================" - sh ''' - docker push semaev/toolbox:latest - ''' - } - } - } -}