Skip to content

Commit f365db6

Browse files
committed
Add generate file
1 parent da70e58 commit f365db6

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.idea
2-
/base/generate.sh
32
/simulationx/runLocal.sh
43
/simulationx/regenerateAll.sh
54
/base/runLocal.sh

base/generate.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
set -ex
3+
4+
5+
# Set the platform flag if we're on ARM
6+
arch=$(uname -m)
7+
if [[ "$arch" == "arm64" || "$arch" == "aarch64" ]]; then
8+
platform_flag="--platform linux/amd64"
9+
else
10+
platform_flag=""
11+
fi
12+
13+
14+
docker build $platform_flag -t neuralensemble/base .

0 commit comments

Comments
 (0)