-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
165 additions
and
81 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,3 +47,8 @@ README.* | |
.ruby-gemset | ||
.ruby-version | ||
.codeclimate.yml | ||
|
||
# vscode | ||
.devcontainer | ||
.history | ||
.ruby-lsp |
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
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
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.
Empty file.
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,36 @@ | ||
#!/command/with-contenv bash | ||
# shellcheck shell=bash | ||
|
||
if [ -z "$RAILS_MASTER_KEY" ]; then | ||
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" | ||
echo "! Missing RAILS_MASTER_KEY, Set it and keep it safe !" | ||
echo "! to dencrypt storaged data in database. !" | ||
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" | ||
|
||
exit 1 | ||
fi | ||
|
||
if [ -z "$RAILS_ENCRYPTED_DATA" ] && [ -f "/app/config/" ]; then | ||
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" | ||
echo "! Missing RAILS_ENCRYPTED_DATA or not found the !" | ||
echo "! credentials file in config folder. !" | ||
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" | ||
|
||
exit 1 | ||
fi | ||
|
||
cd /app | ||
|
||
# Clear pid if unexpected exception exit | ||
rm -f tmp/pids/.pid | ||
|
||
# Remove legacy encrypted file | ||
rm -f config/credentials.yml.enc | ||
|
||
# Create project requires directory | ||
mkdir -p tmp/pids tmp/cache tmp/uploads tmp/sockets log config/credentials | ||
|
||
bin/rails subway:credentials | ||
bin/rails subway:upgrade | ||
|
||
exit 0 |
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 @@ | ||
oneshot |
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 @@ | ||
/etc/s6-overlay/s6-rc.d/init-subway/run |
19 changes: 19 additions & 0 deletions
19
docker/rootfs/etc/s6-overlay/s6-rc.d/setup-timezone/branding
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,19 @@ | ||
██████ █ ██ ▄▄▄▄ █ █░ ▄▄▄ ▓██ ██▓ | ||
▒██ ▒ ██ ▓██▒▓█████▄ ▓█░ █ ░█░▒████▄ ▒██ ██▒ | ||
░ ▓██▄ ▓██ ▒██░▒██▒ ▄██▒█░ █ ░█ ▒██ ▀█▄ ▒██ ██░ | ||
▒ ██▒▓▓█ ░██░▒██░█▀ ░█░ █ ░█ ░██▄▄▄▄██ ░ ▐██▓░ | ||
▒██████▒▒▒▒█████▓ ░▓█ ▀█▓░░██▒██▓ ▓█ ▓██▒ ░ ██▒▓░ | ||
▒ ▒▓▒ ▒ ░░▒▓▒ ▒ ▒ ░▒▓███▀▒░ ▓░▒ ▒ ▒▒ ▓▒█░ ██▒▒▒ | ||
░ ░▒ ░ ░░░▒░ ░ ░ ▒░▒ ░ ▒ ░ ░ ▒ ▒▒ ░▓██ ░▒░ | ||
░ ░ ░ ░░░ ░ ░ ░ ░ ░ ░ ░ ▒ ▒ ▒ ░░ | ||
░ ░ ░ ░ ░ ░░ ░ | ||
░ ░ ░ ░ ░ ░ ░ ░ ░ | ||
░ ░ ░ ░ | ||
░▀█▀░█▀█░█░█░█▀▀░░░▀█▀░█░█░█▀▀░░░▀█▀░█▀▄░█▀█░▀█▀░█▀█░ | ||
░░█░░█▀█░█▀▄░█▀▀░░░░█░░█▀█░█▀▀░░░░█░░█▀▄░█▀█░░█░░█░█░ | ||
░░▀░░▀░▀░▀░▀░▀▀▀░░░░▀░░▀░▀░▀▀▀░░░░▀░░▀░▀░▀░▀░▀▀▀░▀░▀░ | ||
░█░█░█▀█░█░█░░░▀█▀░█▀█░░░█░█░█▀█░█▄█░█▀▀░░░░░░░░░░░░░ | ||
░█▄█░█▀█░░█░░░░░█░░█░█░░░█▀█░█░█░█░█░█▀▀░░░░░░░░░░░░░ | ||
░▀░▀░▀░▀░░▀░░░░░▀░░▀▀▀░░░▀░▀░▀▀▀░▀░▀░▀▀▀░░░░░░░░░░░░░ | ||
|
||
|
5 changes: 4 additions & 1 deletion
5
...er/rootfs/etc/cont-init.d/01-set-timezone → ...etc/s6-overlay/s6-rc.d/setup-timezone/run
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 @@ | ||
oneshot |
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 @@ | ||
/etc/s6-overlay/s6-rc.d/setup-timezone/run |
Empty file.
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,4 @@ | ||
#!/command/with-contenv sh | ||
|
||
echo "Launching Subway Worker Service" | ||
cd /app && bin/good_job start |
File renamed without changes.
Empty file.
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,4 @@ | ||
#!/command/with-contenv sh | ||
|
||
echo "Launching Subway Web Server" | ||
cd /app && bin/puma -C config/puma.rb | tee log/production.log |
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 @@ | ||
longrun |
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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