Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d434f7933 |
||
|
|
9904e2eaec |
3 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
FROM registry.fedoraproject.org/f28/s2i-base:latest
|
||||
FROM registry.fedoraproject.org/f30/s2i-base:latest
|
||||
|
||||
ENV NAME=golang \
|
||||
VERSION=1.10 \
|
||||
VERSION=1.11 \
|
||||
ARCH=x86_64
|
||||
|
||||
ENV SUMMARY="Platform for building and running Go $VERSION based applications" \
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@ NAMESPACE=centos
|
|||
[[ $DISTRO =~ rhel* ]] && NAMESPACE=rhscl
|
||||
|
||||
cat <<EOF
|
||||
This is a S2I golang-1.10 ${DISTRO} base image:
|
||||
This is a S2I golang-1.11 ${DISTRO} base image:
|
||||
To use it, install S2I: https://github.com/openshift/source-to-image
|
||||
Sample invocation:
|
||||
s2i build -e IMPORT_URL='github.com/cpuguy83/go-md2man' git://github.com/cpuguy83/go-md2man ${NAMESPACE}/golang-1.10-${DISTRO} go-sample-app
|
||||
s2i build -e IMPORT_URL='github.com/cpuguy83/go-md2man' git://github.com/cpuguy83/go-md2man ${NAMESPACE}/golang-1.11-${DISTRO} go-sample-app
|
||||
You can then run the resulting image via:
|
||||
docker run go-sample-app
|
||||
EOF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue