Run update.sh

This commit is contained in:
Docker Library Bot 2020-02-17 20:10:29 +00:00
parent 8f58aeceb3
commit a671be95f2
3 changed files with 17 additions and 17 deletions

View File

@ -111,7 +111,7 @@ Go (a.k.a., Golang) is a programming language first developed at Google. It is a
The most straightforward way to use this image is to use a Go container as both the build and runtime environment. In your `Dockerfile`, writing something along the lines of the following will compile and run your project: The most straightforward way to use this image is to use a Go container as both the build and runtime environment. In your `Dockerfile`, writing something along the lines of the following will compile and run your project:
```dockerfile ```dockerfile
FROM golang:1.8 FROM golang:1.13
WORKDIR /go/src/app WORKDIR /go/src/app
COPY . . COPY . .
@ -134,13 +134,13 @@ $ docker run -it --rm --name my-running-app my-golang-app
There may be occasions where it is not appropriate to run your app inside a container. To compile, but not run your app inside the Docker instance, you can write something like: There may be occasions where it is not appropriate to run your app inside a container. To compile, but not run your app inside the Docker instance, you can write something like:
```console ```console
$ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.8 go build -v $ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.13 go build -v
``` ```
This will add your current directory as a volume to the container, set the working directory to the volume, and run the command `go build` which will tell go to compile the project in the working directory and output the executable to `myapp`. Alternatively, if you have a `Makefile`, you can run the `make` command inside your container. This will add your current directory as a volume to the container, set the working directory to the volume, and run the command `go build` which will tell go to compile the project in the working directory and output the executable to `myapp`. Alternatively, if you have a `Makefile`, you can run the `make` command inside your container.
```console ```console
$ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.8 make $ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.13 make
``` ```
## Cross-compile your app inside the Docker container ## Cross-compile your app inside the Docker container
@ -148,13 +148,13 @@ $ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.8 make
If you need to compile your application for a platform other than `linux/amd64` (such as `windows/386`): If you need to compile your application for a platform other than `linux/amd64` (such as `windows/386`):
```console ```console
$ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp -e GOOS=windows -e GOARCH=386 golang:1.8 go build -v $ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp -e GOOS=windows -e GOARCH=386 golang:1.13 go build -v
``` ```
Alternatively, you can build for multiple platforms at once: Alternatively, you can build for multiple platforms at once:
```console ```console
$ docker run --rm -it -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.8 bash $ docker run --rm -it -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.13 bash
$ for GOOS in darwin linux; do $ for GOOS in darwin linux; do
> for GOARCH in 386 amd64; do > for GOARCH in 386 amd64; do
> export GOOS GOARCH > export GOOS GOARCH

View File

@ -16,12 +16,12 @@ WARNING:
# Supported tags and respective `Dockerfile` links # Supported tags and respective `Dockerfile` links
- [`6.1.1-jdk8`, `6.1-jdk8`, `jdk8`, `6.1.1-jdk`, `6.1-jdk`, `jdk`, `6.1.1`, `6.1`, `latest`](https://github.com/keeganwitt/docker-gradle/blob/6596a2c43781107a48acd7520149bb153f10ea06/jdk8/Dockerfile) - [`6.2.0-jdk8`, `6.2-jdk8`, `jdk8`, `6.2.0-jdk`, `6.2-jdk`, `jdk`, `6.2.0`, `6.2`, `latest`](https://github.com/keeganwitt/docker-gradle/blob/5c43f9b1a5feef76b9b74e507a9a2970ab97646b/jdk8/Dockerfile)
- [`6.1.1-jre8`, `6.1-jre8`, `jre8`, `6.1.1-jre`, `6.1-jre`, `jre`](https://github.com/keeganwitt/docker-gradle/blob/6596a2c43781107a48acd7520149bb153f10ea06/jre8/Dockerfile) - [`6.2.0-jre8`, `6.2-jre8`, `jre8`, `6.2.0-jre`, `6.2-jre`, `jre`](https://github.com/keeganwitt/docker-gradle/blob/5c43f9b1a5feef76b9b74e507a9a2970ab97646b/jre8/Dockerfile)
- [`6.1.1-jdk11`, `6.1-jdk11`, `jdk11`](https://github.com/keeganwitt/docker-gradle/blob/6596a2c43781107a48acd7520149bb153f10ea06/jdk11/Dockerfile) - [`6.2.0-jdk11`, `6.2-jdk11`, `jdk11`](https://github.com/keeganwitt/docker-gradle/blob/5c43f9b1a5feef76b9b74e507a9a2970ab97646b/jdk11/Dockerfile)
- [`6.1.1-jre11`, `6.1-jre11`, `jre11`](https://github.com/keeganwitt/docker-gradle/blob/6596a2c43781107a48acd7520149bb153f10ea06/jre11/Dockerfile) - [`6.2.0-jre11`, `6.2-jre11`, `jre11`](https://github.com/keeganwitt/docker-gradle/blob/5c43f9b1a5feef76b9b74e507a9a2970ab97646b/jre11/Dockerfile)
- [`6.1.1-jdk13`, `6.1-jdk13`, `jdk13`](https://github.com/keeganwitt/docker-gradle/blob/6596a2c43781107a48acd7520149bb153f10ea06/jdk13/Dockerfile) - [`6.2.0-jdk13`, `6.2-jdk13`, `jdk13`](https://github.com/keeganwitt/docker-gradle/blob/5c43f9b1a5feef76b9b74e507a9a2970ab97646b/jdk13/Dockerfile)
- [`6.1.1-jre13`, `6.1-jre13`, `jre13`](https://github.com/keeganwitt/docker-gradle/blob/6596a2c43781107a48acd7520149bb153f10ea06/jre13/Dockerfile) - [`6.2.0-jre13`, `6.2-jre13`, `jre13`](https://github.com/keeganwitt/docker-gradle/blob/5c43f9b1a5feef76b9b74e507a9a2970ab97646b/jre13/Dockerfile)
# Quick reference # Quick reference

View File

@ -16,12 +16,12 @@ WARNING:
# Supported tags and respective `Dockerfile` links # Supported tags and respective `Dockerfile` links
- [`3.0.0-jdk8`, `3.0-jdk8`, `3.0.0-jdk`, `3.0-jdk`, `jdk8`, `jdk`](https://github.com/groovy/docker-groovy/blob/53ad8b1f1e17b59c9c928a61c642edae96ae344f/jdk8/Dockerfile) - [`3.0.1-jdk8`, `3.0-jdk8`, `3.0.1-jdk`, `3.0-jdk`, `jdk8`, `jdk`](https://github.com/groovy/docker-groovy/blob/f07a0cde51df72a202a536b95bfff970f26e57bb/jdk8/Dockerfile)
- [`3.0.0-jre8`, `3.0-jre8`, `3.0.0-jre`, `3.0-jre`, `3.0.0`, `3.0`, `jre8`, `jre`, `latest`](https://github.com/groovy/docker-groovy/blob/53ad8b1f1e17b59c9c928a61c642edae96ae344f/jre8/Dockerfile) - [`3.0.1-jre8`, `3.0-jre8`, `3.0.1-jre`, `3.0-jre`, `3.0.1`, `3.0`, `jre8`, `jre`, `latest`](https://github.com/groovy/docker-groovy/blob/f07a0cde51df72a202a536b95bfff970f26e57bb/jre8/Dockerfile)
- [`3.0.0-jdk11`, `3.0-jdk11`, `jdk11`](https://github.com/groovy/docker-groovy/blob/53ad8b1f1e17b59c9c928a61c642edae96ae344f/jdk11/Dockerfile) - [`3.0.1-jdk11`, `3.0-jdk11`, `jdk11`](https://github.com/groovy/docker-groovy/blob/f07a0cde51df72a202a536b95bfff970f26e57bb/jdk11/Dockerfile)
- [`3.0.0-jre11`, `3.0-jre11`, `jre11`](https://github.com/groovy/docker-groovy/blob/53ad8b1f1e17b59c9c928a61c642edae96ae344f/jre11/Dockerfile) - [`3.0.1-jre11`, `3.0-jre11`, `jre11`](https://github.com/groovy/docker-groovy/blob/f07a0cde51df72a202a536b95bfff970f26e57bb/jre11/Dockerfile)
- [`3.0.0-jdk13`, `3.0-jdk13`, `jdk13`](https://github.com/groovy/docker-groovy/blob/53ad8b1f1e17b59c9c928a61c642edae96ae344f/jdk13/Dockerfile) - [`3.0.1-jdk13`, `3.0-jdk13`, `jdk13`](https://github.com/groovy/docker-groovy/blob/f07a0cde51df72a202a536b95bfff970f26e57bb/jdk13/Dockerfile)
- [`3.0.0-jre13`, `3.0-jre13`, `jre13`](https://github.com/groovy/docker-groovy/blob/53ad8b1f1e17b59c9c928a61c642edae96ae344f/jre13/Dockerfile) - [`3.0.1-jre13`, `3.0-jre13`, `jre13`](https://github.com/groovy/docker-groovy/blob/f07a0cde51df72a202a536b95bfff970f26e57bb/jre13/Dockerfile)
# Quick reference # Quick reference