Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
MaitresNageurs
PiscineJI
Commits
1198e91a
Commit
1198e91a
authored
Nov 24, 2016
by
CHAMONT David
Browse files
try better handling of versions
parent
b2fab85d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
0 deletions
+57
-0
Python2a3/Dockerfile2
Python2a3/Dockerfile2
+1
-0
Python2a3/Dockerfile3
Python2a3/Dockerfile3
+1
-0
Python2a3/VERSION
Python2a3/VERSION
+1
-0
Python2a3/docker-build.sh
Python2a3/docker-build.sh
+17
-0
Python2a3/release.sh
Python2a3/release.sh
+37
-0
No files found.
Python2a3/Dockerfile2
View file @
1198e91a
...
...
@@ -7,4 +7,5 @@ RUN apt-get update \
&& apt-get install -y xemacs21 \
&& rm -rf /var/lib/apt/lists/*
ADD VERSION .
ADD . /work
Python2a3/Dockerfile3
View file @
1198e91a
...
...
@@ -7,5 +7,6 @@ RUN apt-get update \
&& apt-get install -y xemacs21 \
&& rm -rf /var/lib/apt/lists/*
ADD VERSION .
ADD . /work
Python2a3/VERSION
0 → 100644
View file @
1198e91a
3
\ No newline at end of file
Python2a3/docker-build.sh
0 → 100644
View file @
1198e91a
#!/bin/bash
# see https://medium.com/travis-on-docker/how-to-version-your-docker-images-1d5c577ebf54
set
-ex
# docker hub username
USERNAME
=
piscineri3
# images names
IMAGE2
=
python27
IMAGE3
=
python36
docker build
-f
Dockerfile2
-t
$USERNAME
/
$IMAGE2
:latest
.
docker build
-f
Dockerfile3
-t
$USERNAME
/
$IMAGE3
:latest
.
Python2a3/release.sh
0 → 100644
View file @
1198e91a
#!/bin/bash
# see https://medium.com/travis-on-docker/how-to-version-your-docker-images-1d5c577ebf54
set
-ex
# docker hub username
USERNAME
=
piscineri3
# images names
IMAGE2
=
python27
IMAGE3
=
python36
# ensure we're up to date
git pull
# get version
version
=
`
cat
VERSION
`
echo
"version:
$version
"
# run build
./build.sh
# tag it
git add
-A
git commit
-m
"version
$version
"
git tag
-a
"
$version
"
-m
"version
$version
"
git push
git push
--tags
docker tag
$USERNAME
/
$IMAGE2
:latest
$USERNAME
/
$IMAGE2
:
$version
docker tag
$USERNAME
/
$IMAGE3
:latest
$USERNAME
/
$IMAGE3
:
$version
# push it
docker push
$USERNAME
/
$IMAGE2
:latest
docker push
$USERNAME
/
$IMAGE2
:
$version
docker push
$USERNAME
/
$IMAGE3
:latest
docker push
$USERNAME
/
$IMAGE3
:
$version
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment