Skip to content

Commit 875efe3

Browse files
Run update.sh
1 parent 548d429 commit 875efe3

File tree

4 files changed

+23
-20
lines changed

4 files changed

+23
-20
lines changed

golang/README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,20 +118,23 @@ Go (a.k.a., Golang) is a programming language first developed at Google. It is a
118118

119119
# How to use this image
120120

121-
**Note:** `/go` is world-writable to allow flexibility in the user which runs the container (for example, in a container started with `--user 1000:1000`, running `go get github.com/example/...` will succeed). While the `777` directory would be insecure on a regular host setup, there are not typically other processes or users inside the container, so this is equivilant to `700` for Docker usage, but allowing for `--user` flexibility.
121+
**Note:** `/go` is world-writable to allow flexibility in the user which runs the container (for example, in a container started with `--user 1000:1000`, running `go get github.com/example/...` into the default `$GOPATH` will succeed). While the `777` directory would be insecure on a regular host setup, there are not typically other processes or users inside the container, so this is equivalent to `700` for Docker usage, but allowing for `--user` flexibility.
122122

123123
## Start a Go instance in your app
124124

125-
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:
125+
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):
126126

127127
```dockerfile
128128
FROM golang:1.17
129129

130-
WORKDIR /go/src/app
131-
COPY . .
130+
WORKDIR /usr/src/app
131+
132+
# pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change
133+
COPY go.mod go.sum ./
134+
RUN go mod download && go mod verify
132135

133-
RUN go get -d -v ./...
134-
RUN go install -v ./...
136+
COPY . .
137+
RUN go build -v -o /usr/local/bin/app ./...
135138

136139
CMD ["app"]
137140
```

nats/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@ WARNING:
2828

2929
## Simple Tags
3030

31-
- [`2.7.1-alpine3.15`, `2.7-alpine3.15`, `2-alpine3.15`, `alpine3.15`, `2.7.1-alpine`, `2.7-alpine`, `2-alpine`, `alpine`](https://github.com/nats-io/nats-docker/blob/1bad0202ccd16901e1bd359731b25f658f60848f/2.7.1/alpine3.15/Dockerfile)
32-
- [`2.7.1-scratch`, `2.7-scratch`, `2-scratch`, `scratch`, `2.7.1-linux`, `2.7-linux`, `2-linux`, `linux`](https://github.com/nats-io/nats-docker/blob/1bad0202ccd16901e1bd359731b25f658f60848f/2.7.1/scratch/Dockerfile)
33-
- [`2.7.1-windowsservercore-1809`, `2.7-windowsservercore-1809`, `2-windowsservercore-1809`, `windowsservercore-1809`](https://github.com/nats-io/nats-docker/blob/1bad0202ccd16901e1bd359731b25f658f60848f/2.7.1/windowsservercore-1809/Dockerfile)
34-
- [`2.7.1-nanoserver-1809`, `2.7-nanoserver-1809`, `2-nanoserver-1809`, `nanoserver-1809`](https://github.com/nats-io/nats-docker/blob/1bad0202ccd16901e1bd359731b25f658f60848f/2.7.1/nanoserver-1809/Dockerfile)
31+
- [`2.7.2-alpine3.15`, `2.7-alpine3.15`, `2-alpine3.15`, `alpine3.15`, `2.7.2-alpine`, `2.7-alpine`, `2-alpine`, `alpine`](https://github.com/nats-io/nats-docker/blob/4edda137e008eeca00abfda368971f64f597644b/2.7.2/alpine3.15/Dockerfile)
32+
- [`2.7.2-scratch`, `2.7-scratch`, `2-scratch`, `scratch`, `2.7.2-linux`, `2.7-linux`, `2-linux`, `linux`](https://github.com/nats-io/nats-docker/blob/4edda137e008eeca00abfda368971f64f597644b/2.7.2/scratch/Dockerfile)
33+
- [`2.7.2-windowsservercore-1809`, `2.7-windowsservercore-1809`, `2-windowsservercore-1809`, `windowsservercore-1809`](https://github.com/nats-io/nats-docker/blob/4edda137e008eeca00abfda368971f64f597644b/2.7.2/windowsservercore-1809/Dockerfile)
34+
- [`2.7.2-nanoserver-1809`, `2.7-nanoserver-1809`, `2-nanoserver-1809`, `nanoserver-1809`](https://github.com/nats-io/nats-docker/blob/4edda137e008eeca00abfda368971f64f597644b/2.7.2/nanoserver-1809/Dockerfile)
3535

3636
## Shared Tags
3737

38-
- `2.7.1`, `2.7`, `2`, `latest`:
39-
- [`2.7.1-scratch`](https://github.com/nats-io/nats-docker/blob/1bad0202ccd16901e1bd359731b25f658f60848f/2.7.1/scratch/Dockerfile)
40-
- [`2.7.1-nanoserver-1809`](https://github.com/nats-io/nats-docker/blob/1bad0202ccd16901e1bd359731b25f658f60848f/2.7.1/nanoserver-1809/Dockerfile)
41-
- `2.7.1-windowsservercore`, `2.7-windowsservercore`, `2-windowsservercore`, `windowsservercore`:
42-
- [`2.7.1-windowsservercore-1809`](https://github.com/nats-io/nats-docker/blob/1bad0202ccd16901e1bd359731b25f658f60848f/2.7.1/windowsservercore-1809/Dockerfile)
43-
- `2.7.1-nanoserver`, `2.7-nanoserver`, `2-nanoserver`, `nanoserver`:
44-
- [`2.7.1-nanoserver-1809`](https://github.com/nats-io/nats-docker/blob/1bad0202ccd16901e1bd359731b25f658f60848f/2.7.1/nanoserver-1809/Dockerfile)
38+
- `2.7.2`, `2.7`, `2`, `latest`:
39+
- [`2.7.2-scratch`](https://github.com/nats-io/nats-docker/blob/4edda137e008eeca00abfda368971f64f597644b/2.7.2/scratch/Dockerfile)
40+
- [`2.7.2-nanoserver-1809`](https://github.com/nats-io/nats-docker/blob/4edda137e008eeca00abfda368971f64f597644b/2.7.2/nanoserver-1809/Dockerfile)
41+
- `2.7.2-windowsservercore`, `2.7-windowsservercore`, `2-windowsservercore`, `windowsservercore`:
42+
- [`2.7.2-windowsservercore-1809`](https://github.com/nats-io/nats-docker/blob/4edda137e008eeca00abfda368971f64f597644b/2.7.2/windowsservercore-1809/Dockerfile)
43+
- `2.7.2-nanoserver`, `2.7-nanoserver`, `2-nanoserver`, `nanoserver`:
44+
- [`2.7.2-nanoserver-1809`](https://github.com/nats-io/nats-docker/blob/4edda137e008eeca00abfda368971f64f597644b/2.7.2/nanoserver-1809/Dockerfile)
4545

4646
# Quick reference (cont.)
4747

photon/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ WARNING:
2626

2727
- [`4.0`, `4.0-20220128`, `latest`](https://github.com/vmware/photon-docker-image/blob/8afc93f902c5f7adb9e962e27af6c3036e0b8610/docker/Dockerfile)
2828
- [`3.0`, `3.0-20220128`](https://github.com/vmware/photon-docker-image/blob/bc5831f060bc7ec60baa821b39af6b7f641ed935/docker/Dockerfile)
29-
- [`1.0`, `1.0-20220128`](https://github.com/vmware/photon-docker-image/blob/b5b4ae64d58456bcca75ab0a14eef46c4e322007/docker/Dockerfile)
30-
- [`2.0`, `2.0-20220128`](https://github.com/vmware/photon-docker-image/blob/5c7c46e3bb1ddd85be7e24098b2012db8d5eb8bf/docker/Dockerfile)
29+
- [`1.0`, `1.0-20220204`](https://github.com/vmware/photon-docker-image/blob/aff3d2c827e9245fc28921860f457d8df0e1f205/docker/Dockerfile)
30+
- [`2.0`, `2.0-20220204`](https://github.com/vmware/photon-docker-image/blob/367b8a26f71905d041460d2920e4830eba8201f8/docker/Dockerfile)
3131

3232
# Quick reference (cont.)
3333

ros/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ WARNING:
4444
- [`galactic-ros1-bridge`, `galactic-ros1-bridge-focal`](https://github.com/osrf/docker_images/blob/8c7ec280db9c754aa163e84bf70f4cbb902e69fb/ros/galactic/ubuntu/focal/ros1-bridge/Dockerfile)
4545
- [`rolling-ros-core`, `rolling-ros-core-focal`](https://github.com/osrf/docker_images/blob/11c613986e35a1f36fd0fa18b49173e0c564cf1d/ros/rolling/ubuntu/focal/ros-core/Dockerfile)
4646
- [`rolling-ros-base`, `rolling-ros-base-focal`, `rolling`](https://github.com/osrf/docker_images/blob/a5644adacdca4a49faf10221620048175cdd7262/ros/rolling/ubuntu/focal/ros-base/Dockerfile)
47-
- [`rolling-ros1-bridge`, `rolling-ros1-bridge-focal`](https://github.com/osrf/docker_images/blob/8c7ec280db9c754aa163e84bf70f4cbb902e69fb/ros/rolling/ubuntu/focal/ros1-bridge/Dockerfile)
47+
- [`rolling-ros1-bridge`, `rolling-ros1-bridge-focal`](https://github.com/osrf/docker_images/blob/e471aedbeaee1e0309bfe5dd1f2e8eea45f1adac/ros/rolling/ubuntu/focal/ros1-bridge/Dockerfile)
4848

4949
# Quick reference (cont.)
5050

0 commit comments

Comments
 (0)