Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Better devops and cleanup #95

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
ui
handler
workdir
test
bids-specification
node_modules
volumes
6 changes: 6 additions & 0 deletions .env.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
MONGO_URL=mongodb://mongodb:27017/ezbids
MONGOOSE_DEBUG=true
UPLOAD_DIR=/app/volumes/upload
WORK_DIR=/app/volumes/ezbids-workdir
HOST=0.0.0.0
PORT=8082
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
.DS_Store
node_modules
volumes/*
!volumes/.gitkeep

# local env files
.env.local
.env.*.local
.env

# Log files
npm-debug.log*
Expand All @@ -25,7 +28,3 @@ testdata
barn
nohup.out
tsc.log

api/config.json

handler/container/ROBEXv12.linux64.tar.gz
2 changes: 0 additions & 2 deletions .stignore

This file was deleted.

9 changes: 0 additions & 9 deletions Dockerfile

This file was deleted.

16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,19 +98,11 @@ brainlife.io is publicly funded and for the sustainability of the project it is
### Citations
We ask that you the following articles when publishing papers that used data, code or other resources created by the brainlife.io community.

1. Levias, D. et al. **In review**

### This repo was bootstrapped by

```
npm init vite@latest ui2 -- --template vue-ts
```
1. Levitas, D. et al. **In review**

### Development Environment

A local development instance of ezBIDS can be launched by first git cloning this repo, then running `./dev.sh` on a docker enabled machine. When everything is built/running, you should be able to reach the dev instance at http://localhost:3000/



Copyright © 2022 brainlife.io at University of Texas at Austin
A local development instance of ezBIDS can be launched by first git cloning this repo, then running `./dev.sh` on a docker enabled machine.
When everything is built/running, you should be able to reach the dev instance at http://localhost:3000/

Copyright © 2022 brainlife.io at University of Texas at Austin
1 change: 1 addition & 0 deletions api/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
17 changes: 17 additions & 0 deletions api/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM node:16

ARG USER=docker
ARG UID
ARG GID

RUN groupadd -g "${GID}" ${USER} || true
RUN useradd --create-home --no-log-init -u "${UID}" -g "${GID}" ${USER} || true

COPY . /app
RUN chown -R ${UID}:${GID} /app
WORKDIR /app/api
RUN npm install

USER ${UID}:${GID}

CMD [ "npm", "run", "dev" ]
13 changes: 0 additions & 13 deletions api/config.js

This file was deleted.

1 change: 0 additions & 1 deletion api/config.js.map

This file was deleted.

Loading