Skip to content

Commit

Permalink
Create the Docker image
Browse files Browse the repository at this point in the history
Signed-off-by: Basilio Vera <[email protected]>
  • Loading branch information
bvis committed Jan 11, 2024
1 parent e35cb89 commit d2fccd1
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
README.md
CODEOWNERS
LICENSE
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @bvis
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ARG VERSION=latest

FROM curlimages/curl:${VERSION}

USER root

RUN apk add gettext libintl

USER curl_user
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,14 @@
# cURL-envsubst

Docker image based on official cURL docker image, adding envsubst command for execute placeholders substitution when executing cURL commands.

## Build

It should be auto-built based in the repo tags, but you can do the same manually executing the next command:

```shell
DOCKER_TAG=8.5.0 \
IMAGE_NAME=softonic/curl-envsubst:8.5.0 \
DOCKER_REPO=softonic/curl-envsubst \
hooks/build
```
13 changes: 13 additions & 0 deletions hooks/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

docker buildx create --name curl-builder --driver docker-container --bootstrap 2> /dev/null || true
docker buildx use curl-builder

docker buildx build \
--pull \
--push \
--build-arg VERSION=${DOCKER_TAG} \
. \
--platform linux/arm64,linux/amd64 \
-t ${IMAGE_NAME} \
-t ${DOCKER_REPO}:latest

0 comments on commit d2fccd1

Please sign in to comment.