Add Symfony Container Image
This commit is contained in:
commit
52a84cfccc
2 changed files with 58 additions and 0 deletions
34
.gitea/workflows/Symfony.yml
Normal file
34
.gitea/workflows/Symfony.yml
Normal file
|
@ -0,0 +1,34 @@
|
|||
|
||||
name: "Build Symfony Devcontainer"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
|
||||
jobs:
|
||||
build_act:
|
||||
runs-on: 'priviliged'
|
||||
steps:
|
||||
- name: Install Docker
|
||||
run: |
|
||||
rm $(which docker) && curl -fsSL https://get.docker.com | sh
|
||||
- name: Set up QEMU
|
||||
uses: 'https://git.euph.dev/actions/docker-setup-qemu@v3'
|
||||
- name: Setup Buildx
|
||||
uses: 'https://git.euph.dev/actions/docker-setup-buildx@v3'
|
||||
- name: Login to Registry
|
||||
uses: 'https://git.euph.dev/actions/docker-login@v3'
|
||||
with:
|
||||
registry: git.euph.dev
|
||||
username: ${{ secrets.DEPLOY_USER }}
|
||||
password: ${{ secrets.DEPLOY_SECRET }}
|
||||
- name: Build and push act base image
|
||||
id: build_act_base
|
||||
uses: 'https://git.euph.dev/actions/docker-build-push@v5'
|
||||
with:
|
||||
context: "{{defaultContext}}:Smyfony"
|
||||
push: true
|
||||
tags: |
|
||||
git.euph.dev/development_tools/Symfony:latest
|
||||
git.euph.dev/development_tools/Symfony:${{ gitea.run_number }}
|
24
Symfony/Dockerfile
Normal file
24
Symfony/Dockerfile
Normal file
|
@ -0,0 +1,24 @@
|
|||
FROM registry.fedoraproject.org/fedora-toolbox:latest
|
||||
|
||||
# Add Symfony CLI Source
|
||||
RUN curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.rpm.sh' | sudo -E bash
|
||||
|
||||
RUN dnf install -y \
|
||||
git \
|
||||
php \
|
||||
composer \
|
||||
php-pdo \
|
||||
php-mysqlnd \
|
||||
symfony-cli \
|
||||
just \
|
||||
jq \
|
||||
fzf \
|
||||
screen \
|
||||
sed \
|
||||
awk \
|
||||
cut \
|
||||
highlight \
|
||||
&& dnf clean all
|
||||
|
||||
# Install Volta
|
||||
RUN curl https://get.volta.sh | bash
|
Loading…
Reference in a new issue