Skip to content

Commit

Permalink
Upgrades alpine version and publishes a multi architecture docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Julio Viera committed Aug 27, 2023
1 parent ed79c56 commit 784608e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.5 AS build
FROM alpine:3.18.3 AS build
MAINTAINER julman99
LABEL Description="This image builds eatmemory"

Expand All @@ -11,7 +11,7 @@ RUN chown root.root -R /root/code
WORKDIR /root/code
RUN make

FROM alpine:3.5
FROM alpine:3.18.3
MAINTAINER julman99
LABEL Description="This image runs eatmemory, a simple C program to allocate memory from the command line. Useful to test programs or systems under high memory usage conditions"
COPY --from=build /root/code/eatmemory /bin
Expand Down
14 changes: 14 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

VERSION="$1"

if [ -z "$VERSION" ]; then
echo "Usage ./deploy.sh <version>"
exit 3
fi

if [ "$OPENVPN_PORT_UDP" == "off" ];then
OPENVPN_PORT_UDP=
fi

docker buildx build --platform=linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm/v8,linux/386 . -t julman99/eatmemory:$VERSION -t julman99/eatmemory:latest --push

0 comments on commit 784608e

Please sign in to comment.