Skip to content

Commit

Permalink
migrate docker to new repo
Browse files Browse the repository at this point in the history
  • Loading branch information
sokil committed Jan 16, 2019
1 parent 9fd6a20 commit 0bd0c9d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ RUN apk update && \
# update certs
update-ca-certificates && \
# get latest stable version
LATEST_VERSION=$(curl https://api.github.com/repos/sokil/statsd-http-proxy/releases/latest 2>/dev/null | grep tag_name | awk -F'"' '{print $4}') && \
LATEST_VERSION=$(curl https://api.github.com/repos/GoMetric/statsd-http-proxy/releases/latest 2>/dev/null | grep tag_name | awk -F'"' '{print $4}') && \
VERSION=${VERSION:-$LATEST_VERSION} && \
# download source
wget https://github.com/sokil/statsd-http-proxy/archive/$VERSION.tar.gz && \
wget https://github.com/GoMetric/statsd-http-proxy/archive/$VERSION.tar.gz && \
tar -zxvf ${VERSION}.tar.gz && \
cd statsd-http-proxy-${VERSION} && \
# make and install source
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ RUN \
APT_PACKAGES="ca-certificates make git wget curl golang" && \
apt-get install -y --no-install-recommends ${APT_PACKAGES} && \
# get latest stable version
LATEST_VERSION=$(curl https://api.github.com/repos/sokil/statsd-http-proxy/releases/latest 2>/dev/null | grep tag_name | awk -F'"' '{print $4}') && \
LATEST_VERSION=$(curl https://api.github.com/repos/GoMetric/statsd-http-proxy/releases/latest 2>/dev/null | grep tag_name | awk -F'"' '{print $4}') && \
VERSION=${VERSION:-$LATEST_VERSION} && \
# download, build source and install
wget https://github.com/sokil/statsd-http-proxy/archive/${VERSION}.tar.gz && \
wget https://github.com/GoMetric/statsd-http-proxy/archive/${VERSION}.tar.gz && \
tar -zxvf ${VERSION}.tar.gz && \
cd statsd-http-proxy-${VERSION} && \
make build && \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Authentication optional and based on JWT tokens.
## Installation

```
git clone git@github.com:sokil/statsd-http-proxy.git
git clone git@github.com:GoMetric/statsd-http-proxy.git
make build
```

Expand Down

0 comments on commit 0bd0c9d

Please sign in to comment.