-
Notifications
You must be signed in to change notification settings - Fork 14
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
8 changed files
with
130 additions
and
72 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
sudo gem install debug |
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 |
---|---|---|
@@ -1,20 +1,10 @@ | ||
version: '3.4' | ||
services: | ||
rails: | ||
|
||
volumes: | ||
# Update this to wherever you want VS Code to mount the folder of your project | ||
- .:/workspace:cached | ||
|
||
# Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker-compose for details. | ||
# - /var/run/docker.sock:/var/run/docker.sock | ||
|
||
# Uncomment the next four lines if you will use a ptrace-based debugger like C++, Go, and Rust. | ||
#cap_add: | ||
# - SYS_PTRACE | ||
#security_opt: | ||
# - seccomp:unconfined | ||
|
||
# Overrides default command so things don't shut down after the process ends. | ||
# Skip entrypoint which would try to migrate on entry | ||
entrypoint: [] | ||
# Overrides default command so things don't shut down after the process ends. | ||
command: /bin/bash -c "while sleep 1000; do :; done" |
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,40 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/docker-existing-docker-compose | ||
// If you want to run as a non-root user in the container, see .devcontainer/docker-compose.yml. | ||
{ | ||
"name": "Hitobito Generic", | ||
|
||
"dockerComposeFile": [ | ||
"../../docker-compose.yml", | ||
"../docker-compose.yml" | ||
], | ||
|
||
// The 'service' property is the name of the service for the container that VS Code should | ||
// use. Update this value and .devcontainer/docker-compose.yml to the real service name. | ||
"service": "rails", | ||
|
||
"workspaceFolder": "/usr/src/app", | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
"forwardPorts": [ | ||
3000, | ||
1080, | ||
3306 | ||
], | ||
|
||
"initializeCommand": ".devcontainer/initialize.sh https://github.com/hitobito/hitobito.git https://github.com/hitobito/hitobito_generic.git", | ||
|
||
"onCreateCommand": ".devcontainer/create.sh", | ||
|
||
"updateContentCommand": ".devcontainer/update.sh", | ||
|
||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"KoichiSasada.vscode-rdbg", | ||
"Shopify.ruby-lsp", | ||
"sorbet.sorbet-vscode-extension" | ||
] | ||
} | ||
} | ||
} |
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,40 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/docker-existing-docker-compose | ||
// If you want to run as a non-root user in the container, see .devcontainer/docker-compose.yml. | ||
{ | ||
"name": "Hitobito PBS", | ||
|
||
"dockerComposeFile": [ | ||
"../../docker-compose.yml", | ||
"../docker-compose.yml" | ||
], | ||
|
||
// The 'service' property is the name of the service for the container that VS Code should | ||
// use. Update this value and .devcontainer/docker-compose.yml to the real service name. | ||
"service": "rails", | ||
|
||
"workspaceFolder": "/usr/src/app", | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
"forwardPorts": [ | ||
3000, | ||
1080, | ||
3306 | ||
], | ||
|
||
"initializeCommand": ".devcontainer/initialize.sh https://github.com/hitobito/hitobito.git https://github.com/hitobito/hitobito_youth.git https://github.com/hitobito/hitobito_pbs.git", | ||
|
||
"onCreateCommand": ".devcontainer/create.sh", | ||
|
||
"updateContentCommand": ".devcontainer/update.sh", | ||
|
||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"KoichiSasada.vscode-rdbg", | ||
"Shopify.ruby-lsp", | ||
"sorbet.sorbet-vscode-extension" | ||
] | ||
} | ||
} | ||
} |
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,21 @@ | ||
#!/bin/bash | ||
|
||
# Set the directory containing git repositories | ||
repositories_dir=app | ||
|
||
# Loop over the directories in the repositories directory | ||
for repository_dir in "$repositories_dir"/*/ | ||
do | ||
# Check if the directory is a git repository | ||
if [ -d "$repository_dir/.git" ] | ||
then | ||
# Change into the repository directory, discard all local changes, and pull the latest changes | ||
cd "$repository_dir" | ||
echo "Updating repository: $(basename $repository_dir)" | ||
git reset --hard HEAD | ||
git clean -f -d | ||
git pull | ||
fi | ||
done | ||
|
||
SKIP_SEEDS=1 SKIP_WAGONFILE=1 /usr/local/bin/rails-entrypoint 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