Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Bun support #177

Open
wants to merge 1 commit into
base: development-docker-compose-2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bin/dev
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ dc() {
yml 'build/dist/docker-compose-ngrok.yml';
yml 'build/dist/docker-compose-ctop.yml';
yml 'build/dist/docker-compose-node.yml';
yml 'build/dist/docker-compose-bun.yml';
yml 'build/dist/docker-compose-expose.yml';
}

Expand Down
11 changes: 11 additions & 0 deletions bin/dev_command/bun
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

dc yml 'build/dist/docker-compose-bun.yml';
dc service bun;

dc nodeps;
dc interactive;
dc projectpath;
dc user;

dc run "$@";
return $?;
21 changes: 21 additions & 0 deletions build/dist/bun/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
ARG FROM_IMAGE=oven/bun
ARG FROM_TAG=latest

FROM ${FROM_IMAGE}:${FROM_TAG}
LABEL maintainer="Jeroen Boersma <[email protected]>"

RUN bun add --global\
webpack webpack-cli webpack-dev-server\
eslint-plugin-import eslint-plugin-promise\
eslint eslint-config-standard eslint-plugin-node eslint-plugin-react eslint-plugin-standard

COPY ./php /usr/local/bin/

ARG GID=1000
ARG UID=1000

WORKDIR /data

RUN groupmod -g $GID bun && \
usermod -g $GID -u $UID bun

3 changes: 3 additions & 0 deletions build/dist/bun/php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
echo "RUN PHP COMMANDS MANUALLY";
echo "$@";
5 changes: 5 additions & 0 deletions build/dist/docker-compose-bun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
services:
bun:
build: build/dist/bun
volumes:
- dockerdev-workspace-volume:/data