1.18.0-debian-10-r0 release

This commit is contained in:
Bitnami Bot 2022-03-16 16:15:25 +00:00
parent a4d7d10253
commit e874e82d7f
7 changed files with 71 additions and 3 deletions

View File

@ -0,0 +1,25 @@
FROM docker.io/bitnami/minideb:buster
LABEL maintainer "Bitnami <containers@bitnami.com>"
ENV OS_ARCH="amd64" \
OS_FLAVOUR="debian-10" \
OS_NAME="linux"
COPY prebuildfs /
# Install required system packages and dependencies
RUN install_packages build-essential ca-certificates curl git gzip libc6 pkg-config procps tar unzip wget
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/golang-1.18.0-0-linux-amd64-debian-10.tar.gz && \
echo "50947e268fa89c6f12f11454e5a6e75dd0915f962f55ade41e161fdd24db5f32 /tmp/bitnami/pkg/cache/golang-1.18.0-0-linux-amd64-debian-10.tar.gz" | sha256sum -c - && \
tar -zxf /tmp/bitnami/pkg/cache/golang-1.18.0-0-linux-amd64-debian-10.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
rm -rf /tmp/bitnami/pkg/cache/golang-1.18.0-0-linux-amd64-debian-10.tar.gz
RUN apt-get update && apt-get upgrade -y && \
rm -r /var/lib/apt/lists /var/cache/apt/archives
RUN mkdir -p "/go/src" "/go/bin" && chmod -R 777 "/go"
ENV BITNAMI_APP_NAME="golang" \
BITNAMI_IMAGE_VERSION="1.18.0-debian-10-r0" \
GOPATH="/go" \
PATH="/go/bin:/opt/bitnami/go/bin:$PATH"
WORKDIR $GOPATH
CMD [ "bash" ]

View File

@ -0,0 +1,6 @@
version: '2'
services:
golang:
tty: true # Enables debugging capabilities when attached to this container.
image: docker.io/bitnami/golang:1.18
command: ["sleep", "infinity"] # To keep the container running

View File

@ -0,0 +1,9 @@
{
"golang": {
"arch": "amd64",
"digest": "50947e268fa89c6f12f11454e5a6e75dd0915f962f55ade41e161fdd24db5f32",
"distro": "debian-10",
"type": "NAMI",
"version": "1.18.0-0"
}
}

View File

@ -0,0 +1,3 @@
Bitnami containers ship with software bundles. You can find the licenses under:
/opt/bitnami/nami/COPYING
/opt/bitnami/[name-of-bundle]/licenses/[bundle-version].txt

View File

@ -0,0 +1,24 @@
#!/bin/sh
set -e
set -u
export DEBIAN_FRONTEND=noninteractive
n=0
max=2
until [ $n -gt $max ]; do
set +e
(
apt-get update -qq &&
apt-get install -y --no-install-recommends "$@"
)
CODE=$?
set -e
if [ $CODE -eq 0 ]; then
break
fi
if [ $n -eq $max ]; then
exit $CODE
fi
echo "apt failed, retrying"
n=$(($n + 1))
done
rm -r /var/lib/apt/lists /var/cache/apt/archives

View File

@ -37,7 +37,8 @@ $ docker-compose up -d
Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/tutorials/understand-rolling-tags-containers/).
* [`1.17`, `1.17-debian-10`, `1.17.8`, `1.17.8-debian-10-r12`, `latest` (1.17/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-golang/blob/1.17.8-debian-10-r12/1.17/debian-10/Dockerfile)
* [`1.18`, `1.18-debian-10`, `1.18.0`, `1.18.0-debian-10-r0`, `latest` (1.18/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-golang/blob/1.18.0-debian-10-r0/1.18/debian-10/Dockerfile)
* [`1.17`, `1.17-debian-10`, `1.17.8`, `1.17.8-debian-10-r12` (1.17/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-golang/blob/1.17.8-debian-10-r12/1.17/debian-10/Dockerfile)
* [`1.16`, `1.16-debian-10`, `1.16.15`, `1.16.15-debian-10-r12` (1.16/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-golang/blob/1.16.15-debian-10-r12/1.16/debian-10/Dockerfile)
Subscribe to project updates by watching the [bitnami/golang GitHub repo](https://github.com/bitnami/bitnami-docker-golang).
@ -59,7 +60,7 @@ $ docker pull bitnami/golang:[TAG]
If you wish, you can also build the image yourself.
```console
$ docker build -t bitnami/golang:latest 'https://github.com/bitnami/bitnami-docker-golang.git#master:1.17/debian-10'
$ docker build -t bitnami/golang:latest 'https://github.com/bitnami/bitnami-docker-golang.git#master:1.18/debian-10'
```
## Persisting your application

View File

@ -2,5 +2,5 @@ version: '2'
services:
golang:
tty: true # Enables debugging capabilities when attached to this container.
image: docker.io/bitnami/golang:1.17
image: docker.io/bitnami/golang:1.18
command: ["sleep", "infinity"] # To keep the container running