Skip to content

Commit

Permalink
update go utils
Browse files Browse the repository at this point in the history
  • Loading branch information
htuscher committed Mar 31, 2023
1 parent 7d298f6 commit 8265043
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docker/toolbox/latest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ RUN apk add --no-cache \
&& wget -O /tmp/baselayout-install.sh https://raw.githubusercontent.com/webdevops/Docker-Image-Baselayout/master/install.sh \
&& sh /tmp/baselayout-install.sh /baselayout \
## Install go-replace
&& wget -O "/baselayout/usr/local/bin/go-replace" "https://github.com/webdevops/goreplace/releases/download/1.1.2/gr-64-linux" \
&& wget -O "/baselayout/usr/local/bin/go-replace" "https://github.com/webdevops/go-replace/releases/download/22.10.0/go-replace.linux.amd64" \
&& chmod +x "/baselayout/usr/local/bin/go-replace" \
&& "/baselayout/usr/local/bin/go-replace" --version \
&& ln -s /baselayout/usr/local/bin/go-replace /usr/local/bin/ \
# Install gosu
&& wget -O "/baselayout/sbin/gosu" "https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64" \
&& wget -O "/tmp/gosu.asc" "https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64.asc" \
&& wget -O "/baselayout/sbin/gosu" "https://github.com/tianon/gosu/releases/download/1.16/gosu-amd64" \
&& wget -O "/tmp/gosu.asc" "https://github.com/tianon/gosu/releases/download/1.16/gosu-amd64.asc" \
&& export GNUPGHOME="$(mktemp -d)" \
&& gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
&& gpg --batch --verify /tmp/gosu.asc "/baselayout/sbin/gosu" \
Expand Down
6 changes: 3 additions & 3 deletions template/Dockerfile/tools.jinja2
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{% macro goreplace(path="/usr/local/bin", version="1.1.2") -%}
{% macro goreplace(path="/usr/local/bin", version="22.10.0") -%}
## Install go-replace
&& wget -O "{{ path }}/go-replace" "https://github.com/webdevops/goreplace/releases/download/{{ version }}/gr-64-linux" \
&& wget -O "{{ path }}/go-replace" "https://github.com/webdevops/go-replace/releases/download/{{ version }}/go-replace.linux.amd64" \
&& chmod +x "{{ path }}/go-replace" \
&& "{{ path }}/go-replace" --version
{%- endmacro %}

{% macro gosu(path="/sbin", arch="amd64", version="1.10") -%}
{% macro gosu(path="/sbin", arch="amd64", version="1.16") -%}
# Install gosu
&& wget -O "{{ path }}/gosu" "https://github.com/tianon/gosu/releases/download/{{ version }}/gosu-{{ arch }}" \
&& wget -O "/tmp/gosu.asc" "https://github.com/tianon/gosu/releases/download/{{ version }}/gosu-{{ arch }}.asc" \
Expand Down

0 comments on commit 8265043

Please sign in to comment.