Skip to content

Commit

Permalink
Merge pull request #12 from russgmoore/develop
Browse files Browse the repository at this point in the history
Support for Apple M1/M2 ARM64
  • Loading branch information
6a6d committed May 8, 2023
2 parents e1fb5f2 + cdc0b0f commit d701fee
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 5 deletions.
8 changes: 8 additions & 0 deletions code-server/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ibind-addr: 0.0.0.0:8080
auth: none
password: f7acd02598357ad71e384fce
cert: false
user-data-dir: /home/user
extention-dir: /home/code-server
disable-telemtry: true
disable-update-check: true
3 changes: 2 additions & 1 deletion containthedocs-bash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
set -x

COMMAND="/bin/bash"
ARCH=`uname -m`

. ./containthedocs-image
. ./containthedocs-image-$ARCH

exec docker run --rm -it \
-v "$PWD":"$PWD" --workdir "$PWD" \
Expand Down
3 changes: 2 additions & 1 deletion containthedocs-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
set -x

COMMAND=(/bin/bash -c "sudo pip install -r requirements.txt -U ; make -C docs clean html")
ARCH=`uname -m`

. ./containthedocs-image
. ./containthedocs-image-$ARCH

exec docker run --rm -t \
-v "$PWD":"$PWD" --workdir "$PWD" \
Expand Down
3 changes: 2 additions & 1 deletion containthedocs-clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
set -x

COMMAND="make -C docs clean"
ARCH=`uname -m`

. ./containthedocs-image
. ./containthedocs-image-$ARCH

exec docker run --rm -it \
-v "$PWD":"$PWD" --workdir "$PWD" \
Expand Down
16 changes: 16 additions & 0 deletions containthedocs-code-server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

set -x


COMMAND="scripts/code-server.sh"
DOCKER_RUN_ARGS="--name code-server -p 3000:8080"
ARCH=`uname -m`

. ./containthedocs-image-$ARCH

exec docker run --rm -it \
-v "$PWD":"$PWD" --workdir "$PWD" \
${DOCKER_RUN_ARGS} \
-e "LOCAL_USER_ID=$(id -u)" \
${DOC_IMG} ${COMMAND}
3 changes: 2 additions & 1 deletion containthedocs-convert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ if [ "$#" -ne 1 ]; then
fi

COMMAND="scripts/convertdocx.sh $1"
ARCH=`uname m`

. ./containthedocs-image
. ./containthedocs-image-$ARCH

exec docker run --rm -it \
-v "$PWD":"$PWD" --workdir "$PWD" \
Expand Down
1 change: 1 addition & 0 deletions containthedocs-image-arm64
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
: ${DOC_IMG:=wetspark/combo-ctd:arm64}
1 change: 1 addition & 0 deletions containthedocs-image-x86_64
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
: ${DOC_IMG:=wetspark/combo-ctd:x86_64}
4 changes: 3 additions & 1 deletion containthedocs-wget
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

set -x

. ../../containthedocs-image
ARCH=`uname -m`

. ../../containthedocs-image-$ARCH

exec docker run --rm -it \
-v "$PWD":"$PWD" --workdir "$PWD" \
Expand Down
5 changes: 5 additions & 0 deletions scripts/code-server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

set -x

/usr/bin/code-server --config /home/code-server/config.yaml "$PWD"

0 comments on commit d701fee

Please sign in to comment.