Skip to content

Commit

Permalink
Resolved missing lib to make it work on alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
TGWolf committed Oct 18, 2021
1 parent 552b334 commit 1610e24
Show file tree
Hide file tree
Showing 26 changed files with 69 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
pull_request:
schedule:
- cron: '0 3 * * *'
- cron: '0 3 * * 1'

jobs:
# alpine:
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ This changelog was automatically generated using [Caretaker](https://github.com/

### [Unreleased](https://github.com/DockerToolbox/goenv/compare/v0.1.2...HEAD)

- update [`[head]`](https://github.com/DockerToolbox/goenv/commit/)
- Resolved missing lib to make it work on alpine [`[head]`](https://github.com/DockerToolbox/goenv/commit/)

- update [`[552b334]`](https://github.com/DockerToolbox/goenv/commit/552b334edfdc7c0ca62c10affc2bb5c68a2e6133)

- update [`[d168065]`](https://github.com/DockerToolbox/goenv/commit/d16806554c5f7e308e21801189082a6fb91f8d9d)

Expand Down
1 change: 1 addition & 0 deletions Dockerfiles/alpine/3.11/Templates/cleanup.tpl
1 change: 1 addition & 0 deletions Dockerfiles/alpine/3.11/Templates/entrypoint.tpl
1 change: 1 addition & 0 deletions Dockerfiles/alpine/3.11/Templates/install.tpl
1 change: 1 addition & 0 deletions Dockerfiles/alpine/3.11/Templates/static-packages.tpl
8 changes: 8 additions & 0 deletions Dockerfiles/alpine/3.11/manage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

cd "$(dirname "$0")" || exit 1

# shellcheck disable=SC1091
source ../../../Scripts/utils.sh

manage_container "${1}" "${2}" "${CONTAINER_OS_VERSION_RAW}"
1 change: 1 addition & 0 deletions Dockerfiles/alpine/3.12/Templates/cleanup.tpl
1 change: 1 addition & 0 deletions Dockerfiles/alpine/3.12/Templates/entrypoint.tpl
1 change: 1 addition & 0 deletions Dockerfiles/alpine/3.12/Templates/install.tpl
1 change: 1 addition & 0 deletions Dockerfiles/alpine/3.12/Templates/static-packages.tpl
8 changes: 8 additions & 0 deletions Dockerfiles/alpine/3.12/manage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

cd "$(dirname "$0")" || exit 1

# shellcheck disable=SC1091
source ../../../Scripts/utils.sh

manage_container "${1}" "${2}" "${CONTAINER_OS_VERSION_RAW}"
1 change: 1 addition & 0 deletions Dockerfiles/alpine/3.13/Templates/cleanup.tpl
1 change: 1 addition & 0 deletions Dockerfiles/alpine/3.13/Templates/entrypoint.tpl
1 change: 1 addition & 0 deletions Dockerfiles/alpine/3.13/Templates/install.tpl
1 change: 1 addition & 0 deletions Dockerfiles/alpine/3.13/Templates/static-packages.tpl
8 changes: 8 additions & 0 deletions Dockerfiles/alpine/3.13/manage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

cd "$(dirname "$0")" || exit 1

# shellcheck disable=SC1091
source ../../../Scripts/utils.sh

manage_container "${1}" "${2}" "${CONTAINER_OS_VERSION_RAW}"
1 change: 1 addition & 0 deletions Dockerfiles/alpine/3.14/Templates/cleanup.tpl
1 change: 1 addition & 0 deletions Dockerfiles/alpine/3.14/Templates/entrypoint.tpl
1 change: 1 addition & 0 deletions Dockerfiles/alpine/3.14/Templates/install.tpl
1 change: 1 addition & 0 deletions Dockerfiles/alpine/3.14/Templates/static-packages.tpl
8 changes: 8 additions & 0 deletions Dockerfiles/alpine/3.14/manage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

cd "$(dirname "$0")" || exit 1

# shellcheck disable=SC1091
source ../../../Scripts/utils.sh

manage_container "${1}" "${2}" "${CONTAINER_OS_VERSION_RAW},latest"
2 changes: 1 addition & 1 deletion Packages/packages.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
APK_PACKAGES=
APK_PACKAGES=ca-certificates bash curl git libc6-compat
APT_PACKAGES=ca-certificates curl git
YUM_PACKAGES=ca-certificates curl git tar yum-plugin-remove-with-leaves
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ This is a selection of Docker containers preinstalled with [goenv](https://githu

We try to offer as many operating system flavours as possible, but we only use currently supported versions of each one.

> We do not provide Alpine containers as goenv does not work within Alpine containers currently.
| Dockerfile | Docker Hub Repo | Docker Hub Tags |
| --- | --- | --- |
| [Alpine Linux 3.11](Dockerfiles/alpine/3.11/Dockerfile) | [wolfsoftwareltd/goenv-alpine](https://hub.docker.com/r/wolfsoftwareltd/goenv-alpine) | 3.11 |
| [Alpine Linux 3.12](Dockerfiles/alpine/3.12/Dockerfile) | [wolfsoftwareltd/goenv-alpine](https://hub.docker.com/r/wolfsoftwareltd/goenv-alpine) | 3.12 |
| [Alpine Linux 3.13](Dockerfiles/alpine/3.13/Dockerfile) | [wolfsoftwareltd/goenv-alpine](https://hub.docker.com/r/wolfsoftwareltd/goenv-alpine) | 3.13 |
| [Alpine Linux 3.14](Dockerfiles/alpine/3.14/Dockerfile) | [wolfsoftwareltd/goenv-alpine](https://hub.docker.com/r/wolfsoftwareltd/goenv-alpine) | 3.14, latest |
| [Amazon Linux 1](Dockerfiles/amazonlinux/1/Dockerfile) | [wolfsoftwareltd/goenv-amazonlinux](https://hub.docker.com/r/wolfsoftwareltd/goenv-amazonlinux) | 1 |
| [Amazon Linux 2](Dockerfiles/amazonlinux/2/Dockerfile) | [wolfsoftwareltd/goenv-amazonlinux](https://hub.docker.com/r/wolfsoftwareltd/goenv-amazonlinux) | 2, latest |
| [Centos 7](Dockerfiles/centos/7/Dockerfile) | [wolfsoftwareltd/goenv-centos](https://hub.docker.com/r/wolfsoftwareltd/goenv-centos) | 7, |
Expand Down Expand Up @@ -79,31 +81,31 @@ We try to offer as many operating system flavours as possible, but we only use c
This can be done from any level of the directory tree and is recursive.

```
./manange-all.sh generate
./manage-all.sh generate
```

### Build Containers

This can be done from any level of the directory tree and is recursive.

```
./manange-all.sh build [clean]
./manage-all.sh build [clean]
```

### Scan Containers

This can be done from any level of the directory tree and is recursive.

```
./manange-all.sh scan
./manage-all.sh scan
```

### Publish Containers

This can be done from any level of the directory tree and is recursive.

```
./manange-all.sh publish
./manage-all.sh publish
```

If you want to publish the containers you will need to update the [utils.sh](Scripts/utils.sh) script and change the following lines.
Expand Down
3 changes: 3 additions & 0 deletions Templates/apk-cleanup.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sed -i -e "s/bin\/ash/bin\/bash/" /etc/passwd && \
apk del git && \
rm -rf /var/cache/apk/*
5 changes: 5 additions & 0 deletions Templates/apk-virtual-packages.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# apk add --no-cache --virtual \
# build-dependencies \
# build-base \
# linux-headers \
# && \

0 comments on commit 1610e24

Please sign in to comment.