-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* change devcontainer path * Ignore devcontainer folder changes * use add to install in current location * add more checks * fix wrong arguments * simplify the postXrate script * adding docker build job * workaround for extenion path and use prebuilt image to address slowness * fix publish index link * add some delay * specify port * use default option
- Loading branch information
Showing
6 changed files
with
82 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# change the default working directory for RStudio | ||
echo "session-default-working-dir=${CODESPACE_VSCODE_FOLDER}" | sudo tee -a /etc/rstudio/rsession.conf | ||
|
||
# Start RStudio Server | ||
echo "Start R studeio Server" | ||
rstudio-server start > rstudio_server.log 2>&1 & | ||
sleep 5 # Give some time for the service to start | ||
if ! pgrep -x "rstudio-server" > /dev/null; then | ||
echo "RStudio Server failed to start. Restarting..." | ||
rstudio-server restart > rstudio_server.log 2>&1 & | ||
fi | ||
|
||
sleep 5 | ||
echo "Setup Jupyter-lab" | ||
# Start Jupyter Lab | ||
jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root --NotebookApp.token='' > jupyter_lab.log 2>&1 & | ||
sleep 5 | ||
if ! pgrep -x "jupyter-lab" > /dev/null; then | ||
echo "Jupyter Lab failed to start. Restarting..." | ||
jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root --NotebookApp.token='' > jupyter_lab.log 2>&1 & | ||
fi | ||
|
||
echo "Dev environment startup completed!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: update docker image | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tags: | ||
description: 'image tags' | ||
required: false | ||
default: mewu/data_access:latest | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
environment: test | ||
steps: | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- | ||
name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- | ||
name: Build and push | ||
uses: docker/build-push-action@v6 | ||
with: | ||
push: true | ||
tags: ${{ github.event.inputs.tags }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters