Skip to content

Commit

Permalink
💫Update (Docker files added)
Browse files Browse the repository at this point in the history
  • Loading branch information
AtomyCloud committed Sep 21, 2024
1 parent d185ffd commit e44d151
Show file tree
Hide file tree
Showing 9 changed files with 79 additions and 119 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/alpine/last_version.txt

This file was deleted.

52 changes: 0 additions & 52 deletions .github/workflows/alpine/pull-alpine-base-os-container.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .github/workflows/alpine/s390x/last_version.txt

This file was deleted.

4 changes: 0 additions & 4 deletions .github/workflows/alpine/x86/last_version.txt

This file was deleted.

4 changes: 0 additions & 4 deletions .github/workflows/alpine/x86_64/last_version.txt

This file was deleted.

52 changes: 0 additions & 52 deletions .github/workflows/pull-alpine-base-os-container-ppc64le

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/tag-3.20.3-x86_64-apache-2.4.62-empty.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: TAG - alpine:3.20.3-x86_64-apache-2.4.62-empty

on:
push:
paths:
- 'docker-images/docker-files/alpine/3.20.3-x86_64-apache-2.4.62-empty/Dockerfile'

workflow_dispatch:

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: ✔️ Checkout Repository
uses: actions/[email protected]

- name: 🔒️ DockerHub Login
uses: docker/[email protected]
with:
username: ${{secrets.DOCKERHUB_USER}}
password: ${{secrets.DOCKERHUB_PWD}}

- name: 🔧 Building AtomyCloud Alpine Container Image
uses: docker/[email protected]
with:
file: ./docker-images/docker-files/alpine/3.20.3-x86_64-apache-2.4.62-empty/Dockerfile
push: true
tags: |
atomycloud/alpine:3.20.3-x86_64-apache-2.4.62-empty
30 changes: 30 additions & 0 deletions .github/workflows/tag-3.20.3-x86_64-apache-2.4.62.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: TAG - alpine:3.20.3-x86_64-apache-2.4.62

on:
push:
paths:
- 'docker-images/docker-files/alpine/3.20.3-x86_64-apache-2.4.62/Dockerfile'

workflow_dispatch:

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: ✔️ Checkout Repository
uses: actions/[email protected]

- name: 🔒️ DockerHub Login
uses: docker/[email protected]
with:
username: ${{secrets.DOCKERHUB_USER}}
password: ${{secrets.DOCKERHUB_PWD}}

- name: 🔧 Building AtomyCloud Alpine Container Image
uses: docker/[email protected]
with:
file: ./docker-images/docker-files/alpine/3.20.3-x86_64-apache-2.4.62/Dockerfile
push: true
tags: |
atomycloud/alpine:3.20.3-x86_64-apache-2.4.62
19 changes: 19 additions & 0 deletions docker-files/alpine/3.20.3-x86_64-apache-2.4.62-empty/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# AtomyCloud - Apache2! Alpine Container Image | atomycloud/alpine:3.20.3-x86_64-apache-2.4.62
# IMAGE: Alpine:3.20.3 + Apache:2.4.62
# docker run -d -p 8080:80 atomycloud/alpine:3.20.3-x86_64-apache-2.4.62-empty
FROM atomycloud/os:alpine-minirootfs-3.20.3-x86_64

RUN apk update && apk add apache2 --no-cache && \
addgroup -g 111 www; adduser -u 111 -D -S -G www www && \
mkdir -p www; chown www:www /www; chmod 1777 /www && \
chown -R www:www /etc/apache2 && \
apk add openrc --no-cache && \
mkdir -p /run/openrc && \
touch /run/openrc/softlevel && \
rc-update add apache2 default && \
sed -i 's|DocumentRoot "/var/www/localhost/htdocs"|DocumentRoot "/www"|' /etc/apache2/httpd.conf && \
sed -i 's|<Directory "/var/www/localhost/htdocs">|<Directory "/www">|' /etc/apache2/httpd.conf

WORKDIR /www
EXPOSE 80
ENTRYPOINT ["/sbin/init"]

0 comments on commit e44d151

Please sign in to comment.