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

feat: Integrate cython and pymem3dg #23

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
20 changes: 20 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.192.0/containers/javascript-node/.devcontainer/base.Dockerfile

ARG VARIANT="18-bullseye"
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
python3 \
git \
make \
g++ \
libcairo2-dev \
libpango1.0-dev \
libjpeg-dev \
libgif-dev \
librsvg2-dev \
&& npm install -g @nrwl/cli commitizen \
&& git config --global pull.rebase true \
&& npx husky install
# && su node -c "git config --global pull.rebase true" \
# && su node -c "npm install -g @nrwl/cli commitizen"
7 changes: 7 additions & 0 deletions .devcontainer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### BioSimulations Containerized Development Environment using VS Code Dev containers.

#### _Getting Started_:
1. Open this repo in VS Code
2. Open the command palatte (CMD + SHIFT + P)
3. Type and select: `Dev Containers: Rebuild and Reopen in Container`. A new window will open.
4. Once the dev container builds successfully, open a new terminal window in the container and run: `npx nx run platform:serve --host 0.0.0.0 --port 4200`. The dev content will be available at `http://localhost:4200`.
22 changes: 22 additions & 0 deletions .devcontainer/api.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.192.0/containers/javascript-node/.devcontainer/base.Dockerfile

ARG VARIANT="18-bullseye"
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
python3 \
git \
make \
g++ \
libcairo2-dev \
libpango1.0-dev \
libjpeg-dev \
libgif-dev \
librsvg2-dev \
&& npm install -g @nrwl/cli commitizen \
&& git config --global pull.rebase true

RUN npx husky install
# && su node -c "git config --global pull.rebase true" \
# && su node -c "npm install -g @nrwl/cli commitizen"
# ENTRYPOINT ["npx", "nx", "run", "platform:serve", "--host", "0.0.0.0", "--port", "4200"]
40 changes: 40 additions & 0 deletions .devcontainer/api.devcontainer/devcontainer.json
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.192.0/containers/javascript-node
{
"name": "Biosimulations",
"dockerComposeFile": "../docker-compose.yml",
"service": "api",
"workspaceFolder": "/workspace",

// Set *default* container specific settings.json values on container create.
"settings": {},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"mikael.angular-beastcode",
"angular.ng-template",
"aaron-bond.better-comments",
"ms-kubernetes-tools.vscode-kubernetes-tools",
"nrwl.angular-console",
"msjsdiag.debugger-for-chrome",
"firefox-devtools.vscode-firefox-debug",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"firsttris.vscode-jest-runner",
"eamodio.gitlens",
"github.copilot"
],

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [4444],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm install"

// check ports: netstat -tuln

// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
// "remoteUser": "alexanderpatrie"

// once container is built run: npx nx run platform:serve --host 0.0.0.0 --port 4200
}
Loading