Skip to content

Commit 15615ca

Browse files
authored
Merge pull request #34 from Ilyes512/remove-vscode-target
Removed vscode target
2 parents 5eeb523 + e4de8bf commit 15615ca

File tree

7 files changed

+8
-70
lines changed

7 files changed

+8
-70
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414

1515
jobs:
1616
build:
17-
uses: Ilyes512/github-actions/.github/workflows/build-php.yml@0.2.2
17+
uses: Ilyes512/github-actions/.github/workflows/build-php.yml@0.3.0
1818
strategy:
1919
fail-fast: false
2020
matrix:
@@ -39,7 +39,7 @@ jobs:
3939
${{ matrix.os }}-buildx-${{ matrix.platform }}-${{ matrix.docker.key }}
4040
4141
merge:
42-
uses: Ilyes512/github-actions/.github/workflows/merge-php.yml@0.2.2
42+
uses: Ilyes512/github-actions/.github/workflows/merge-php.yml@0.3.0
4343
needs: build
4444
strategy:
4545
matrix:

.github/workflows/pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313

1414
jobs:
1515
build:
16-
uses: Ilyes512/github-actions/.github/workflows/build-php.yml@0.2.2
16+
uses: Ilyes512/github-actions/.github/workflows/build-php.yml@0.3.0
1717
strategy:
1818
fail-fast: false
1919
matrix:
@@ -39,7 +39,7 @@ jobs:
3939
${{ matrix.os }}-buildx-${{ matrix.platform }}-${{ matrix.docker.key }}-main-
4040
4141
merge:
42-
uses: Ilyes512/github-actions/.github/workflows/merge-php.yml@0.2.2
42+
uses: Ilyes512/github-actions/.github/workflows/merge-php.yml@0.3.0
4343
needs: build
4444
strategy:
4545
matrix:

.github/workflows/tag.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414

1515
jobs:
1616
build:
17-
uses: Ilyes512/github-actions/.github/workflows/build-php.yml@0.2.2
17+
uses: Ilyes512/github-actions/.github/workflows/build-php.yml@0.3.0
1818
strategy:
1919
fail-fast: false
2020
matrix:
@@ -40,7 +40,7 @@ jobs:
4040
${{ matrix.os }}-buildx-${{ matrix.platform }}-${{ matrix.docker.key }}-
4141
4242
merge:
43-
uses: Ilyes512/github-actions/.github/workflows/merge-php.yml@0.2.2
43+
uses: Ilyes512/github-actions/.github/workflows/merge-php.yml@0.3.0
4444
needs: build
4545
strategy:
4646
matrix:

README.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,15 @@ A PHP 8.3 (FPM and Apache) based Docker base image.
1010
docker pull ghcr.io/ilyes512/php83:runtime-latest
1111
docker pull ghcr.io/ilyes512/php83:builder-latest
1212
docker pull ghcr.io/ilyes512/php83:builder-nodejs-latest
13-
docker pull ghcr.io/ilyes512/php83:vscode-latest
1413
1514
docker pull ghcr.io/ilyes512/php83/apache:runtime-latest
1615
docker pull ghcr.io/ilyes512/php83/apache:builder-latest
1716
docker pull ghcr.io/ilyes512/php83/apache:builder-nodejs-latest
18-
docker pull ghcr.io/ilyes512/php83/apache:vscode-latest
1917
```
2018

2119
The tag scheme: `{TARGET}-{VERSION}`
2220

23-
- **{TARGET}**: `runtime`, `builder`, `builder_nodejs` or `vscode`
21+
- **{TARGET}**: `runtime`, `builder` or `builder_nodejs`
2422
- **{VERSION}**: `latest` or tag i.e. `1.0.0`
2523

2624
## Building the docker image(s)
@@ -30,9 +28,6 @@ There are multiple targets:
3028
- **runtime**: this is for *production*. It does not contain any development tools like Composer and Xdebug.
3129
- **builder**: this is for *development*. This is based on the runtime-target and it adds Composer, Xdebug etc.
3230
- **builder_nodejs**: this is for *development*. This is based on the builder-target and it adds NodeJS.
33-
- **vscode**: this is for *development* using
34-
[VS Code Remote](https://code.visualstudio.com/docs/remote/remote-overview). This is based on the
35-
`builder_nodejs`-target and adds some VS Code deps.
3631

3732
Building `runtime`-target:
3833

@@ -52,12 +47,6 @@ Building `builder_nodejs`-target:
5247
docker build --tag ghcr.io/ilyes512/php83:builder-nodejs-latest --file fpm/Dockerfile --target builder_nodejs .
5348
```
5449

55-
Building `vscode`-target:
56-
57-
```
58-
docker build --tag ghcr.io/ilyes512/php83:vscode-latest --file fpm/Dockerfile --target vscode .
59-
```
60-
6150
## Task commands
6251

6352
Available [Task](https://taskfile.dev/#/) commands:

Taskfile.dist.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ tasks:
4141
TARGET: builder_nodejs
4242
DOCKER_IMAGE_NAME: '{{.DOCKER_IMAGE_NAME}}'
4343
DOCKER_FILE_PATH: '{{.DOCKER_FILE_PATH}}'
44-
- task: build:target
45-
vars:
46-
TARGET: vscode
47-
DOCKER_IMAGE_NAME: '{{.DOCKER_IMAGE_NAME}}'
48-
DOCKER_FILE_PATH: '{{.DOCKER_FILE_PATH}}'
4944

5045
build:apache:
5146
desc: Build all PHP Docker image targets of the Apache variant
@@ -69,20 +64,14 @@ tasks:
6964
TARGET: builder_nodejs
7065
DOCKER_IMAGE_NAME: '{{.DOCKER_IMAGE_NAME}}'
7166
DOCKER_FILE_PATH: '{{.DOCKER_FILE_PATH}}'
72-
- task: build:target
73-
vars:
74-
TARGET: vscode
75-
DOCKER_IMAGE_NAME: '{{.DOCKER_IMAGE_NAME}}'
76-
DOCKER_FILE_PATH: '{{.DOCKER_FILE_PATH}}'
7767

7868
build:target:
7969
preconditions:
8070
- sh: >
8171
test '{{.TARGET}}' = 'runtime'
8272
-o '{{.TARGET}}' = 'builder'
8373
-o '{{.TARGET}}' = 'builder_nodejs'
84-
-o '{{.TARGET}}' = 'vscode'
85-
msg: TARGET needs to contain the Docker TARGET [runtime, builder, builder_nodejs, vscode]
74+
msg: TARGET needs to contain the Docker TARGET [runtime, builder, builder_nodejs]
8675
vars:
8776
VERSION: '{{.VERSION | default "latest"}}'
8877
cmds:

apache/Dockerfile

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -194,23 +194,3 @@ RUN apt-get update \
194194
&& apt-get clean --assume-yes \
195195
&& rm -rf /var/lib/apt/lists/* \
196196
&& rm -rf /tmp/*
197-
198-
FROM builder_nodejs AS vscode
199-
200-
ARG UNIQUE_ID_FOR_CACHEFROM=vscode
201-
202-
RUN apt-get update \
203-
&& apt-get install --assume-yes --no-install-recommends \
204-
openssh-client \
205-
sudo \
206-
# VSCode Live Share Extension dependencies
207-
libicu72 \
208-
libkrb5-3 \
209-
zlib1g \
210-
gnome-keyring \
211-
libsecret-1-0 \
212-
desktop-file-utils \
213-
x11-utils \
214-
&& apt-get autoremove --assume-yes \
215-
&& apt-get clean --assume-yes \
216-
&& rm -rf /var/lib/apt/lists/*

fpm/Dockerfile

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -194,23 +194,3 @@ RUN apt-get update \
194194
&& apt-get clean --assume-yes \
195195
&& rm -rf /var/lib/apt/lists/* \
196196
&& rm -rf /tmp/*
197-
198-
FROM builder_nodejs AS vscode
199-
200-
ARG UNIQUE_ID_FOR_CACHEFROM=vscode
201-
202-
RUN apt-get update \
203-
&& apt-get install --assume-yes --no-install-recommends \
204-
openssh-client \
205-
sudo \
206-
# VSCode Live Share Extension dependencies
207-
libicu72 \
208-
libkrb5-3 \
209-
zlib1g \
210-
gnome-keyring \
211-
libsecret-1-0 \
212-
desktop-file-utils \
213-
x11-utils \
214-
&& apt-get autoremove --assume-yes \
215-
&& apt-get clean --assume-yes \
216-
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)