-
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.
chore: set bento_user and git in dev image
- Loading branch information
1 parent
f55926e
commit 299e20e
Showing
3 changed files
with
28 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
cd /gohan-api || exit | ||
|
||
# Create bento_user and home | ||
source /create_service_user.bash | ||
|
||
# Create dev build directory | ||
mkdir -p src/api/tmp | ||
|
||
# Set permissions / groups | ||
chown -R bento_user:bento_user ./ | ||
chown -R bento_user:bento_user /app | ||
chmod -R o-rwx src/api/tmp | ||
|
||
# Drop into bento_user from root and execute the CMD specified for the image | ||
exec gosu bento_user "$@" |
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,7 @@ | ||
#!/bin/bash | ||
|
||
# Set .gitconfig for development | ||
/set_gitconfig.bash | ||
|
||
# Start gohan-api with hot reload using Air | ||
air |