Skip to content

Commit 2bf16ad

Browse files
Merge pull request #1 from AllenNeuralDynamics/main
chore: intitial repo setup
2 parents c158f41 + 4ad7dbb commit 2bf16ad

6 files changed

Lines changed: 33 additions & 6 deletions

File tree

.codeocean/environment.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"version": 1,
3+
"base_image": "codeocean/code-server-python-extensions-pack:code-server4.108.2python3.12.4aind-metadata-mcp0.5.2withDOTFILES_REPOsupport",
4+
"post_install": true,
5+
"options": {
6+
"registry_host_arg": true,
7+
"git_ask_pass": true,
8+
"mount_secrets": true
9+
}
10+
}

.codeocean/resources.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"version": 1,
3+
"resource_class": "xsmall"
4+
}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,5 @@ dmypy.json
150150
!.vscode/tasks.json
151151
!.vscode/launch.json
152152
!.vscode/extensions.json
153-
!.vscode/*.code-snippets
153+
!.vscode/*.code-snippets
154+
.vscode

code/run_capsule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
def run():
44
""" basic run function """
5-
pass
5+
print("run_capsule.run()")
66

77
if __name__ == "__main__": run()

environment/Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
# hash:sha256:6ceefde681fb5ad2ca41bca5b1ebdfc35ce9ce0f7acc50dc183706cc463f5d61
1+
# hash:sha256:612cb4028985b1571839958aef978a5cf931ef4b95b17393c84c131403e37943
22
ARG REGISTRY_HOST
3-
FROM $REGISTRY_HOST/codeocean/jupyterlab:3.6.1-miniconda4.12.0-python3.9-ubuntu20.04
3+
FROM $REGISTRY_HOST/codeocean/code-server-python-extensions-pack:code-server4.108.2python3.12.4aind-metadata-mcp0.5.2withDOTFILES_REPOsupport
44

55
ARG DEBIAN_FRONTEND=noninteractive
6-
76
ARG GIT_ASKPASS
8-
ARG GIT_ACCESS_TOKEN
97
COPY git-askpass /
8+
9+
COPY postInstall /
10+
RUN --mount=type=secret,id=secrets . /run/secrets/secrets \
11+
&& /postInstall

environment/postInstall

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
#!/usr/bin/env bash
5+
set -e
6+
7+
git clone --branch sean-dev --single-branch https://github.com/seanmcculloch/photon-mosaic.git
8+
cd photon-mosaic
9+
git checkout 6af660c
10+
pip install .

0 commit comments

Comments
 (0)