General Purposes Go! Language Base Docker Images
See Details On Git-Hub: docker-golang
Docker Go-language Universal Image
This image install latest version in the release list, from Go! Language repo, and it requires express internet access. After the
installation of the go-language everything continue straight. If the Argument GO_VERSION is changed it will install a qualified version on
run-time at the first container execution.
Branch
Reference Git-Hub branch is golang-universal
Available Go language image tags
Go language available targs and repository branches are:
Tag: universal - Installs most recent version of go language at first run and executes the required application
Tag: 1.15 - Uses pre-installed go language version 1.15 and executes the required application
Tag: 1.14 - Uses pre-installed go language version 1.14 and executes the required application
Characteristics
Docker image exposes or declares or exposes:
Variables:
GOVER -> Go Language version
GO_CMD -> Go language custom command, for testing, bulding and running the application
GIT_USER -> Argument GO_GIT_USER -> svn configured user name
GIT_EMAIL -> Argument GO_GIT_EMAIL -> svn configured user email
SVN_REPO -> Argument GO_SVN_REPO -> svn project repository (clone and/or pull on container start-up)
SVN_BRANCH -> Argument GO_SVN_BRANCH -> Working svn repository branch
APP_REPO -> Argument GO_APP_REPO -> repository as defined in $GOPATH/src [e.g.: github.com]
APP_USER -> Argument GO_APP_USER -> repository as defined in $GOPATH/src/$APP_REPO [e.g.: my-svn-user]
APP_NAME -> Argument GO_APP_NAME -> repository name defined in $GOPATH/src/$APP_REPO/$APP_USER
Latest 3 variables defines the path under the GOPATH for the project source, related to automate build, and link sources inside the GOPATH.
Ports:
Volumes:
/usr/shared/app - containing eventually svn repository base folder, not mandatory
Commands:
Entry Points:
docker-entry-point.sh - compute multiple functions: install/reintall go language, clone or pull svn repository, execute container command line commands
Build
We provide build-docker-image.sh script file, that belongd to the golang.env arguments file.
It's parsed by the shell script in the build command.
Note important information please fill mandatory arguments in the golang.env arguments file:
Argument GO_GIT_USER -> your svn user name
Argument GO_GIT_EMAIL -> your svn user email
Than on run you can assign the environemnt variables
GO_VERSION -> Go! Language Build Version (default: latest)
SVN_REPO -> svn project repository (clone and/or pull on container start-up)
SVN_BRANCH -> Working svn repository branch (e.g.: [email protected] :my-svn-user/my-project.git)
APP_REPO -> repository as defined in $GOPATH/src [e.g.: github.com]
APP_USER -> repository as defined in $GOPATH/src/$APP_REPO [e.g.: my-svn-user]
APP_NAME -> repository name defined in $GOPATH/src/$APP_REPO/$APP_USER [e.g.: my-project]
For the svn URL(s), it;s preferred ssh reference on the https one.
Docker Go-language v1.14 Image
Branch
Reference Git-Hub branch is golang-v1.14
Characteristics
Docker image exposes or declares or exposes:
Variables:
GOVER -> Go Language version
GO_CMD -> Go language custom command, for testing, bulding and running the application
GIT_USER -> Argument GO_GIT_USER -> svn configured user name
GIT_EMAIL -> Argument GO_GIT_EMAIL -> svn configured user email
SVN_REPO -> Argument GO_SVN_REPO -> svn project repository (clone and/or pull on container start-up)
SVN_BRANCH -> Argument GO_SVN_BRANCH -> Working svn repository branch
APP_REPO -> Argument GO_APP_REPO -> repository as defined in $GOPATH/src [e.g.: github.com]
APP_USER -> Argument GO_APP_USER -> repository as defined in $GOPATH/src/$APP_REPO [e.g.: my-svn-user]
APP_NAME -> Argument GO_APP_NAME -> repository name defined in $GOPATH/src/$APP_REPO/$APP_USER
Latest 3 variables defines the path under the GOPATH for the project source, related to automate build, and link sources inside the GOPATH.
Ports:
Volumes:
/usr/shared/app - containing eventually svn repository base folder, not mandatory
Commands:
Entry Points:
docker-entry-point.sh - compute multiple functions: install/reintall go language, clone or pull svn repository, execute container command line commands
Build
We provide build-docker-image.sh script file, that belongd to the golang.env arguments file.
It's parsed by the shell script in the build command.
Note important information please fill mandatory arguments in the golang.env arguments file:
Argument GO_GIT_USER -> your svn user name
Argument GO_GIT_EMAIL -> your svn user email
Than on run you can assign the environemnt variables
SVN_REPO -> svn project repository (clone and/or pull on container start-up)
SVN_BRANCH -> Working svn repository branch (e.g.: [email protected] :my-svn-user/my-project.git)
APP_REPO -> repository as defined in $GOPATH/src [e.g.: github.com]
APP_USER -> repository as defined in $GOPATH/src/$APP_REPO [e.g.: my-svn-user]
APP_NAME -> repository name defined in $GOPATH/src/$APP_REPO/$APP_USER [e.g.: my-project]
For the svn URL(s), it;s preferred ssh reference on the https one.
License
The library is licensed with LGPL v. 3.0 clauses, with prior authorization of author before any production or commercial use. Use of this library or any extension is prohibited due to high risk of damages due to improper use. No warranty is provided for improper or unauthorized use of this library or any implementation.
Any request can be prompted to the author Fabrizio Torelli at the follwoing email address:
[email protected]