-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP * Build action * Build action * migrate when run, not build * fixed db name lol * wip * wip * WIP * done * change image name * change image name
- Loading branch information
1 parent
94d0efa
commit 76d7950
Showing
10 changed files
with
139 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Docker of DocKing | ||
|
||
DocKing ships Docker Images too, in case you want boot it up as fast as you can for development, even production usage. | ||
DocKing ships Docker Images too. | ||
|
||
## Development | ||
## 2024 updates | ||
|
||
Check out: https://docking.shipsaas.tech/getting-started/run-on-local/docker | ||
DocKing image can be used in both development & production 😎. You can inject your own ENVs in runtime. | ||
|
||
## Production | ||
## Run DocKing | ||
|
||
Check out: https://docking.shipsaas.tech/deployment/docker | ||
TBA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env sh | ||
set -e | ||
|
||
# Run user scripts, if they exist | ||
for f in /var/www/html/.docker/scripts/*.sh; do | ||
# Bail out this loop if any script exits with non-zero status code | ||
bash "$f" || break | ||
done | ||
|
||
echo "Welcome to DocKing"; | ||
echo "Starting the application using supervisor..."; | ||
exec /usr/bin/supervisord --nodaemon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "Running config:cache..."; | ||
php /var/www/html/artisan config:cache --no-ansi -q | ||
echo "Successfully cached the configuration"; | ||
|
||
echo "Running route:cache..."; | ||
php /var/www/html/artisan route:cache --no-ansi -q | ||
echo "Successfully cached the routes"; | ||
|
||
echo "Running view:cache..."; | ||
php /var/www/html/artisan view:cache --no-ansi -q | ||
echo "Successfully cached the views"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "Running migration..."; | ||
php /var/www/html/artisan migrate --no-ansi -q --force | ||
echo "Successfully migrated"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Test build Docker Image | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- 'main' | ||
types: [ opened, synchronize, reopened, ready_for_review ] | ||
|
||
jobs: | ||
build_image: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
if: success() | ||
|
||
- name: Setup PHP with coverage driver | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.2 | ||
|
||
- name: Setup Node 16 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: 'npm' | ||
|
||
- name: Setup & Build | ||
if: success() | ||
run: | | ||
composer install --no-interaction | ||
npm ci && npm run build | ||
- name: Build Docker - Normal Image | ||
if: success() | ||
run: docker build -t docking:test -f .docker/Dockerfile . | ||
|
||
- name: Build Docker - Octane Image | ||
if: success() | ||
run: docker build -t docking:test -f .docker/octane.Dockerfile . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters