Cloud Innovation Platform Portal - Core version for public open source community
- Choose a name
export S2INAME="s2i-hugo-go"
- Build image
oc new-build centos7-base~https://github.com/cip-core-mirrors/s2i-hugo-golang --strategy docker --name $S2INAME
- Choose a name
export APPBUILDNAME="mywebsite-build"
- Create a binary build
oc new-build --binary --image-stream $S2INAME --name $APPBUILDNAME
- Start the build from local directory
oc start-build $APPNAME --from-dir .
- Choose a name
export APPNAME="mywebsite"
- Create a binary build
oc new-build --strategy docker -D $'FROM nginx\nCOPY public/* /opt/app-root/src\nUSER ROOT\nRUN chown -R nginx:nginx /opt/app-root/src\nUSER 1001\nEXPOSE 8080\nCMD nginx -g daemon off;' --source-image '${APPBUILDNAME}:latest' --source-image-path "/opt/app-root/src:public" --name $APPNAME"