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

Add scicloj template #11

Merged
merged 2 commits into from
May 21, 2024
Merged
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
src/scicloj/.cpcache/
src/scicloj/.clj-kondo
src/scicloj/poetry.lock
/src/scicloj/.lsp/
3 changes: 3 additions & 0 deletions src/scicloj/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ RUN groupadd --gid $USER_GID $USERNAME \

# [Optional] Set the default user. Omit if you want to keep the default as root.
USER $USERNAME
SHELL ["/bin/bash", "-ec"]
ENTRYPOINT ["bash"]

8 changes: 4 additions & 4 deletions src/scicloj/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
}
},

"postStartCommand":
{ "ide-setup": "bash -c 'if [ -f \"/home/vscode/.setup-ide/setup-ide.sh\" ]; then /home/vscode/.setup-ide/setup-ide.sh; fi'",
"clojure prepare": "bash -i -c 'clj -Sthreads 1 -P'",
"poetry setup": "bash -i -c 'mkdir -p .venv && poetry install'"
"postCreateCommand":
{ "ide-setup": ["bash", "-c", "if [ -f \"/home/vscode/.setup-ide/setup-ide.sh\" ]; then /home/vscode/.setup-ide/setup-ide.sh; fi"],
"prepare": ["bash","-c", "-i", "./.devcontainer/setup.sh"]


}
}
5 changes: 5 additions & 0 deletions src/scicloj/.devcontainer/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

clj -Sthreads 1 -P
mkdir -p .venv
poetry install
2 changes: 2 additions & 0 deletions src/scicloj/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# unreleased
# 1.0.4
- use setup.sh script

# 1.0.3
- added clojure -P to startup
Expand Down
2 changes: 1 addition & 1 deletion src/scicloj/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "scicloj",
"version": "1.0.3",
"version": "1.0.4",
"name": "scicloj template",
"description": "A scicloj Template",
"documentationURL": "https://github.com/scicloj/devcontainer-templates/tree/main/src/scicloj",
Expand Down
Loading