Add Go & cleanup
All checks were successful
Build Jetbrains Distrobox Images / build_jetbrains (go) (push) Successful in 4m9s
Build Jetbrains Distrobox Images / build_jetbrains (symfony) (push) Successful in 2m27s

This commit is contained in:
Snoweuph 2024-07-29 23:01:38 +02:00
parent c14b5e9501
commit 859349dccf
Signed by: Snoweuph
GPG key ID: A494330694B208EF
3 changed files with 24 additions and 7 deletions

View file

@ -7,11 +7,11 @@ on:
- 'main' - 'main'
jobs: jobs:
build_act: build_jetbrains:
runs-on: 'priviliged' runs-on: 'priviliged'
strategy: strategy:
matrix: matrix:
toolchain: [symfony] toolchain: [symfony, go]
steps: steps:
- name: Install Docker - name: Install Docker
run: | run: |
@ -32,8 +32,8 @@ jobs:
with: with:
context: "{{defaultContext}}:jetbrains/${{ matrix.toolchain }}" context: "{{defaultContext}}:jetbrains/${{ matrix.toolchain }}"
push: true push: true
build-args: JETBRAINS_DEPENDENCIES=fuse fuse-libs libXi libXrender libXtst fontconfig gtk3 tar dbus-libs git just jq fzf build-args: JETBRAINS_DEPENDENCIES=fuse fuse-libs libXi libXrender libXtst fontconfig gtk3 tar dbus-libs git just jq fzf screen highlight
tags: | tags: |
git.euph.dev/development_tools/distrobox/jetbrains/${{ matrix.toolchain }}:latest git.euph.dev/development_tools/distrobox/jetbrains/${{ matrix.toolchain }}:latest
git.euph.dev/development_tools/distrobox/jetbrains/${{ matrix.toolchain }}:${{ gitea.run_number }} git.euph.dev/development_tools/distrobox/jetbrains/${{ matrix.toolchain }}:${{ gitea.run_number }}

19
jetbrains/go/Dockerfile Normal file
View file

@ -0,0 +1,19 @@
FROM fedora:40
ARG JETBRAINS_DEPENDENCIES
# Set environment variables
ENV BOX_NAME="go"
# Install required packages and setup sources
RUN dnf install -y \
$JETBRAINS_DEPENDENCIES \
golang \
&& dnf clean all \
&& go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
# Link outside tooling
RUN alias docker="podman"
RUN ln -s /usr/bin/distrobox-host-exec /usr/local/bin/podman
# Command to run on container start
CMD ["distrobox-enter", "--name", "$BOX_NAME"]

View file

@ -2,15 +2,13 @@ FROM fedora:40
ARG JETBRAINS_DEPENDENCIES ARG JETBRAINS_DEPENDENCIES
# Set environment variables # Set environment variables
ENV BOX_NAME="phpstorm" ENV BOX_NAME="symfony"
# Install required packages and setup sources # Install required packages and setup sources
RUN curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.rpm.sh' | bash \ RUN curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.rpm.sh' | bash \
&& dnf install -y \ && dnf install -y \
$JETBRAINS_DEPENDENCIES \ $JETBRAINS_DEPENDENCIES \
php \ php \
screen \
highlight \
composer \ composer \
php-pdo \ php-pdo \
php-mysqlnd \ php-mysqlnd \