Skip to content

Commit

Permalink
Change /home/ folder mode on universal image too
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
  • Loading branch information
l0rd committed Sep 27, 2021
1 parent 7bd4fe3 commit 0281b9d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ubi8-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ jobs:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Docker Build & Push base
- name: Docker Build & Push Base
uses: docker/build-push-action@v2
with:
push: ${{ github.event_name != 'pull_request' }}
context: base/ubi8
tags: |
${{ steps.meta.outputs.tags }}
- name: Docker Build & Push universal
- name: Docker Build & Push Universal
uses: docker/build-push-action@v2
with:
push: ${{ github.event_name != 'pull_request' }}
Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ $ docker run -ti --rm \
| `zsh` |`NOT AVAILABLE (fedora only)` |
| **TOTAL SIZE** | **411MB** (143MB compressed) |

## Universal Images
## Developer Universal Image

### Red Hat Universal Base Image ([UBI](https://developers.redhat.com/articles/ubi-faq#)) based image ([quay.io/devfile/universal-developer-image:ubi8-latest](https://quay.io/repository/devfile/universal-developer-image/))

Expand All @@ -72,21 +72,22 @@ docker run -ti --rm \

| Tool or language | ubi8 based image |
|---------------------|-------------------------------------|
|--------JAVA---------|-------------------------------------|
| `sdk` |`<https://get.sdkman.io>` |
| `java` |`<11.0.12-open via sdkman>` |
| `maven` |`<via sdkman>` |
| `gradle` |`<via sdkman>` |
|---------------------|-------------------------------------|
|-------NODEJS--------|-------------------------------------|
| `nodejs` |`nodejs` |
| `npm` |`npm` |
| `yarn` |`<via npm>` |
|---------------------|-------------------------------------|
|--------GO-----------|-------------------------------------|
| `go` |`go-toolset` |
|---------------------|-------------------------------------|
|------PYTHON---------|-------------------------------------|
| `python` |`python39` |
| `setuptools` |`python39-setuptools` |
| `pip` |`python39-pip` |
|---------------------|-------------------------------------|
|------CLOUD----------|-------------------------------------|
| `podman` |`container-tools:rhel8` |
| `buildah` |`container-tools:rhel8` |
| `skopeo` |`container-tools:rhel8` |
Expand Down
4 changes: 4 additions & 0 deletions universal/ubi8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -234,4 +234,8 @@ cd -
rm -rf "${TEMP_DIR}"
EOF

# Set permissions on /etc/passwd and /home to allow arbitrary users to write
RUN mkdir -p /home/user && chgrp -R 0 /home && \
chmod -R g=u /etc/passwd /etc/group /home

USER 1001

0 comments on commit 0281b9d

Please sign in to comment.