Run update.sh
This commit is contained in:
parent
6a0f614f2e
commit
9d9d41e270
|
|
@ -130,7 +130,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 (assuming it uses `go.mod` for dependency management):
|
||||
|
||||
```dockerfile
|
||||
FROM golang:1.22
|
||||
FROM golang:1.23
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
|
|
@ -156,13 +156,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:
|
||||
|
||||
```console
|
||||
$ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.22 go build -v
|
||||
$ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.23 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.
|
||||
|
||||
```console
|
||||
$ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.22 make
|
||||
$ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.23 make
|
||||
```
|
||||
|
||||
## Cross-compile your app inside the Docker container
|
||||
|
|
@ -170,13 +170,13 @@ $ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.22 make
|
|||
If you need to compile your application for a platform other than `linux/amd64` (such as `windows/386`):
|
||||
|
||||
```console
|
||||
$ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp -e GOOS=windows -e GOARCH=386 golang:1.22 go build -v
|
||||
$ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp -e GOOS=windows -e GOARCH=386 golang:1.23 go build -v
|
||||
```
|
||||
|
||||
Alternatively, you can build for multiple platforms at once:
|
||||
|
||||
```console
|
||||
$ docker run --rm -it -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.22 bash
|
||||
$ docker run --rm -it -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.23 bash
|
||||
$ for GOOS in darwin linux; do
|
||||
> for GOARCH in 386 amd64; do
|
||||
> export GOOS GOARCH
|
||||
|
|
|
|||
|
|
@ -24,23 +24,23 @@ WARNING:
|
|||
|
||||
# Supported tags and respective `Dockerfile` links
|
||||
|
||||
- [`9`](https://github.com/oracle/container-images/blob/b99233acc86d93ff471c861cdc4ccbd5f83f91e9/9/Dockerfile)
|
||||
- [`9`](https://github.com/oracle/container-images/blob/ebd9ccbe2d59c8b0c99767e1a59367e102e726d8/9/Dockerfile)
|
||||
|
||||
- [`9-slim`](https://github.com/oracle/container-images/blob/b99233acc86d93ff471c861cdc4ccbd5f83f91e9/9-slim/Dockerfile)
|
||||
- [`9-slim`](https://github.com/oracle/container-images/blob/ebd9ccbe2d59c8b0c99767e1a59367e102e726d8/9-slim/Dockerfile)
|
||||
|
||||
- [`9-slim-fips`](https://github.com/oracle/container-images/blob/b99233acc86d93ff471c861cdc4ccbd5f83f91e9/9-slim-fips/Dockerfile)
|
||||
- [`9-slim-fips`](https://github.com/oracle/container-images/blob/ebd9ccbe2d59c8b0c99767e1a59367e102e726d8/9-slim-fips/Dockerfile)
|
||||
|
||||
- [`8.10`, `8`](https://github.com/oracle/container-images/blob/b99233acc86d93ff471c861cdc4ccbd5f83f91e9/8/Dockerfile)
|
||||
- [`8.10`, `8`](https://github.com/oracle/container-images/blob/ebd9ccbe2d59c8b0c99767e1a59367e102e726d8/8/Dockerfile)
|
||||
|
||||
- [`8-slim`](https://github.com/oracle/container-images/blob/b99233acc86d93ff471c861cdc4ccbd5f83f91e9/8-slim/Dockerfile)
|
||||
- [`8-slim`](https://github.com/oracle/container-images/blob/ebd9ccbe2d59c8b0c99767e1a59367e102e726d8/8-slim/Dockerfile)
|
||||
|
||||
- [`8-slim-fips`](https://github.com/oracle/container-images/blob/b99233acc86d93ff471c861cdc4ccbd5f83f91e9/8-slim-fips/Dockerfile)
|
||||
- [`8-slim-fips`](https://github.com/oracle/container-images/blob/ebd9ccbe2d59c8b0c99767e1a59367e102e726d8/8-slim-fips/Dockerfile)
|
||||
|
||||
- [`7.9`, `7`](https://github.com/oracle/container-images/blob/b99233acc86d93ff471c861cdc4ccbd5f83f91e9/7/Dockerfile)
|
||||
- [`7.9`, `7`](https://github.com/oracle/container-images/blob/ebd9ccbe2d59c8b0c99767e1a59367e102e726d8/7/Dockerfile)
|
||||
|
||||
- [`7-slim`](https://github.com/oracle/container-images/blob/b99233acc86d93ff471c861cdc4ccbd5f83f91e9/7-slim/Dockerfile)
|
||||
- [`7-slim`](https://github.com/oracle/container-images/blob/ebd9ccbe2d59c8b0c99767e1a59367e102e726d8/7-slim/Dockerfile)
|
||||
|
||||
- [`7-slim-fips`](https://github.com/oracle/container-images/blob/b99233acc86d93ff471c861cdc4ccbd5f83f91e9/7-slim-fips/Dockerfile)
|
||||
- [`7-slim-fips`](https://github.com/oracle/container-images/blob/ebd9ccbe2d59c8b0c99767e1a59367e102e726d8/7-slim-fips/Dockerfile)
|
||||
|
||||
# Quick reference (cont.)
|
||||
|
||||
|
|
|
|||
|
|
@ -48,13 +48,13 @@ WARNING:
|
|||
|
||||
- [`3.5.2-scala2.12-java11-python3-r-ubuntu`](https://github.com/apache/spark-docker/blob/b9f1f8e8ebed1959c2be3864a114b52f67519092/3.5.2/scala2.12-java11-python3-r-ubuntu/Dockerfile)
|
||||
|
||||
- [`3.4.2-scala2.12-java11-python3-ubuntu`, `3.4.2-python3`, `3.4.2`](https://github.com/apache/spark-docker/blob/b9f1f8e8ebed1959c2be3864a114b52f67519092/3.4.2/scala2.12-java11-python3-ubuntu/Dockerfile)
|
||||
- [`3.4.3-scala2.12-java11-python3-ubuntu`, `3.4.3-python3`, `3.4.3`](https://github.com/apache/spark-docker/blob/6f10acb452a360966ec9a971641280b7b4a3619a/3.4.3/scala2.12-java11-python3-ubuntu/Dockerfile)
|
||||
|
||||
- [`3.4.2-scala2.12-java11-r-ubuntu`, `3.4.2-r`](https://github.com/apache/spark-docker/blob/b9f1f8e8ebed1959c2be3864a114b52f67519092/3.4.2/scala2.12-java11-r-ubuntu/Dockerfile)
|
||||
- [`3.4.3-scala2.12-java11-r-ubuntu`, `3.4.3-r`](https://github.com/apache/spark-docker/blob/6f10acb452a360966ec9a971641280b7b4a3619a/3.4.3/scala2.12-java11-r-ubuntu/Dockerfile)
|
||||
|
||||
- [`3.4.2-scala2.12-java11-ubuntu`, `3.4.2-scala`](https://github.com/apache/spark-docker/blob/b9f1f8e8ebed1959c2be3864a114b52f67519092/3.4.2/scala2.12-java11-ubuntu/Dockerfile)
|
||||
- [`3.4.3-scala2.12-java11-ubuntu`, `3.4.3-scala`](https://github.com/apache/spark-docker/blob/6f10acb452a360966ec9a971641280b7b4a3619a/3.4.3/scala2.12-java11-ubuntu/Dockerfile)
|
||||
|
||||
- [`3.4.2-scala2.12-java11-python3-r-ubuntu`](https://github.com/apache/spark-docker/blob/b9f1f8e8ebed1959c2be3864a114b52f67519092/3.4.2/scala2.12-java11-python3-r-ubuntu/Dockerfile)
|
||||
- [`3.4.3-scala2.12-java11-python3-r-ubuntu`](https://github.com/apache/spark-docker/blob/6f10acb452a360966ec9a971641280b7b4a3619a/3.4.3/scala2.12-java11-python3-r-ubuntu/Dockerfile)
|
||||
|
||||
# Quick reference (cont.)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue