Add Go & cleanup
This commit is contained in:
parent
c14b5e9501
commit
859349dccf
3 changed files with 24 additions and 7 deletions
|
@ -7,11 +7,11 @@ on:
|
|||
- 'main'
|
||||
|
||||
jobs:
|
||||
build_act:
|
||||
build_jetbrains:
|
||||
runs-on: 'priviliged'
|
||||
strategy:
|
||||
matrix:
|
||||
toolchain: [symfony]
|
||||
toolchain: [symfony, go]
|
||||
steps:
|
||||
- name: Install Docker
|
||||
run: |
|
||||
|
@ -32,7 +32,7 @@ jobs:
|
|||
with:
|
||||
context: "{{defaultContext}}:jetbrains/${{ matrix.toolchain }}"
|
||||
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: |
|
||||
git.euph.dev/development_tools/distrobox/jetbrains/${{ matrix.toolchain }}:latest
|
||||
git.euph.dev/development_tools/distrobox/jetbrains/${{ matrix.toolchain }}:${{ gitea.run_number }}
|
||||
|
|
19
jetbrains/go/Dockerfile
Normal file
19
jetbrains/go/Dockerfile
Normal 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"]
|
|
@ -2,15 +2,13 @@ FROM fedora:40
|
|||
ARG JETBRAINS_DEPENDENCIES
|
||||
|
||||
# Set environment variables
|
||||
ENV BOX_NAME="phpstorm"
|
||||
ENV BOX_NAME="symfony"
|
||||
|
||||
# Install required packages and setup sources
|
||||
RUN curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.rpm.sh' | bash \
|
||||
&& dnf install -y \
|
||||
$JETBRAINS_DEPENDENCIES \
|
||||
php \
|
||||
screen \
|
||||
highlight \
|
||||
composer \
|
||||
php-pdo \
|
||||
php-mysqlnd \
|
||||
|
|
Loading…
Reference in a new issue