-
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.
Merge pull request #49 from bento-platform/features/remove-tables
feat!: removed tables
- Loading branch information
Showing
35 changed files
with
713 additions
and
1,432 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
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,15 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Attach to PID (Bento)", | ||
"type": "go", | ||
"request": "attach", | ||
"mode": "local", | ||
"processId": 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
ARG BASE_DEV_IMAGE | ||
|
||
FROM $BASE_DEV_IMAGE | ||
|
||
LABEL org.opencontainers.image.description="Local development image for Bento Gohan." | ||
LABEL devcontainer.metadata='[{ \ | ||
"customizations": { \ | ||
"vscode": { \ | ||
"extensions": ["golang.go", "eamodio.gitlens"], \ | ||
"settings": {"workspaceFolder": "/gohan-api"} \ | ||
} \ | ||
} \ | ||
}]' | ||
|
||
# Maintainer | ||
LABEL maintainer="Brennan Brouillette <[email protected]>" | ||
|
||
WORKDIR /app | ||
|
||
# Debian updates | ||
# - tabix for indexing VCFs | ||
# - other base dependencies provided by the base image | ||
RUN apt-get update -y && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y tabix && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN go install github.com/cosmtrek/air@latest | ||
|
||
COPY go.mod go.sum ./ | ||
RUN go mod download && go mod vendor | ||
|
||
# Repository mounted to the container | ||
WORKDIR /gohan-api/src/api | ||
COPY entrypoint.bash . | ||
COPY run.dev.bash . | ||
|
||
ENTRYPOINT [ "bash", "./entrypoint.bash" ] | ||
CMD [ "air" ] |
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 "$@" |
Oops, something went wrong.