Compare commits

..

5 commits

Author SHA1 Message Date
Marek Skalický
33370d6549
Pull changes from upstream repository. 2018-11-05 16:08:52 +00:00
Jakub Čajka
469b0b013b OSBS/Koji/Atomic-reactor is not supporting UTF-8 characters https://github.com/projectatomic/atomic-reactor/issues/1072 2018-09-13 11:19:04 +02:00
Jakub Čajka
f902f59e3b Remove release label 2018-09-10 14:51:53 +02:00
Jakub Čajka
fedd0ce0b9 Use correct name for the Dockerfile 2018-09-10 14:31:39 +02:00
Jakub Čajka
15d3258e3c Initial go1.9/f27 s2i image 2018-09-10 14:24:34 +02:00
5 changed files with 8 additions and 22 deletions

View file

View file

@ -1,7 +1,7 @@
FROM registry.fedoraproject.org/f30/s2i-base:latest
FROM registry.fedoraproject.org/f27/s2i-base:latest
ENV NAME=golang \
VERSION=1.11 \
VERSION=1.9 \
ARCH=x86_64
ENV SUMMARY="Platform for building and running Go $VERSION based applications" \

View file

@ -20,14 +20,11 @@ if [[ `go list -f {{.Incomplete}}` == "true" || ! -z "$IMPORT_URL" ]]; then
mv /tmp/src/* $GOPATH/src/$IMPORT_URL
if [[ -d /tmp/artifacts/pkg || -d /tmp/artifacts/go-build ]]; then
if [[ -d /tmp/artifacts/pkg ]]; then
echo "Restoring previous build artifacts"
mv /tmp/artifacts/pkg $GOPATH
GOCACHE=`go env GOCACHE`
mkdir -p $GOCACHE
mv /tmp/artifacts/go-build $GOCACHE
fi

View file

@ -2,24 +2,13 @@
set -e
TOSAVE=""
if [[ -d $HOME/go/pkg ]]; then
mv $HOME/go/pkg pkg &> /dev/null
TOSAVE=$TOSAVE"./pkg "
pushd $HOME/go &> /dev/null
tar -cf - pkg
popd &> /dev/null
fi
if [[ -d `go env GOCACHE` ]]; then
mv `go env GOCACHE` go-build &> /dev/null
TOSAVE=$TOSAVE"./go-build "
fi
if [[ -n "$TOSAVE" ]]; then
tar -cf - $TOSAVE
fi

View file

@ -5,10 +5,10 @@ NAMESPACE=centos
[[ $DISTRO =~ rhel* ]] && NAMESPACE=rhscl
cat <<EOF
This is a S2I golang-1.11 ${DISTRO} base image:
This is a S2I golang-1.9 ${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.11-${DISTRO} go-sample-app
s2i build -e IMPORT_URL='github.com/cpuguy83/go-md2man' git://github.com/cpuguy83/go-md2man ${NAMESPACE}/golang-1.9-${DISTRO} go-sample-app
You can then run the resulting image via:
docker run go-sample-app
EOF