mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2024-11-27 06:30:07 +01:00
Rename to bin/dev-shell to avoid confusion
This commit is contained in:
parent
650bdcb161
commit
a24c5bd1a5
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,6 @@
|
||||||
.idea/
|
.idea/
|
||||||
wordpress.iml
|
wordpress.iml
|
||||||
|
data/
|
||||||
build/patch-util/wp-src/
|
build/patch-util/wp-src/
|
||||||
build/tests-util/composer.lock
|
build/tests-util/composer.lock
|
||||||
build/tests-util/vendor/
|
build/tests-util/vendor/
|
||||||
|
|
19
Dockerfile.dev
Normal file
19
Dockerfile.dev
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
ARG WP_VERSION=6.5.3
|
||||||
|
FROM scratch AS rootfs
|
||||||
|
|
||||||
|
# Install composer
|
||||||
|
COPY --from=composer:2.7 ["/usr/bin/composer", "/usr/local/bin/composer"]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ARG WP_VERSION
|
||||||
|
FROM ghcr.io/n0rthernl1ghts/wordpress:${WP_VERSION}
|
||||||
|
|
||||||
|
RUN set -eux \
|
||||||
|
&& apk add --update --no-cache exa file fish git less nano openssh-client rsync tree unzip wget
|
||||||
|
|
||||||
|
COPY --from=rootfs ["/", "/"]
|
||||||
|
|
||||||
|
|
||||||
|
WORKDIR "/workspace"
|
||||||
|
ENTRYPOINT ["/usr/bin/fish"]
|
24
bin/dev-shell
Executable file
24
bin/dev-shell
Executable file
|
@ -0,0 +1,24 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# This is development util
|
||||||
|
main() {
|
||||||
|
local wpVersion="${1:-6.5.3}"
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
docker build \
|
||||||
|
--file=Dockerfile.dev \
|
||||||
|
--build-arg="WP_VERSION=${wpVersion}" \
|
||||||
|
-t "localhost/nlss-wp-dev:${wpVersion}" .
|
||||||
|
|
||||||
|
docker run \
|
||||||
|
--init \
|
||||||
|
--rm \
|
||||||
|
-it \
|
||||||
|
-v "${PWD}/src/:/workspace" \
|
||||||
|
"localhost/nlss-wp-dev:${wpVersion}"
|
||||||
|
}
|
||||||
|
|
||||||
|
main "${@}"
|
16
bin/shell
16
bin/shell
|
@ -1,16 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# This is development util
|
|
||||||
main() {
|
|
||||||
local wpVersion="${1:-latest}"
|
|
||||||
docker run \
|
|
||||||
--init \
|
|
||||||
--entrypoint="/bin/bash" \
|
|
||||||
--workdir="/app" \
|
|
||||||
--rm \
|
|
||||||
-it \
|
|
||||||
-v "${PWD}/src/init-utils:/app" \
|
|
||||||
"ghcr.io/n0rthernl1ghts/wordpress:${wpVersion}"
|
|
||||||
}
|
|
||||||
|
|
||||||
main "${@}"
|
|
Loading…
Reference in New Issue
Block a user