Skip to content

Commit

Permalink
Files to create dcoker environment
Browse files Browse the repository at this point in the history
  • Loading branch information
hsm207 committed Apr 1, 2020
1 parent 2ccb2b0 commit 1a076b6
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.108.0/containers/docker-existing-dockerfile
{
"name": "Julia Dockerfile",

// Sets the run context to one level up instead of the .devcontainer folder.
"context": "..",

// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
"dockerFile": "..\\Dockerfile",

// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": ["julialang.language-julia"],

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [8888],

// Uncomment the next line to run commands after the container is created - for example installing git.
// "postCreateCommand": "apt-get update && apt-get install -y git",

// Uncomment when using a ptrace-based debugger like C++, Go, and Rust
// "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],
"runArgs": ["--net=host", "-e", "JULIA_NUM_THREADS=4"],

// Uncomment to use the Docker CLI from inside the container. See https://aka.ms/vscode-remote/samples/docker-in-docker.
// "mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ],

// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "user"
}
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM hsm207/statrethinking-julia:latest
5 changes: 5 additions & 0 deletions scripts/install_libraries.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
install.packages("tidyverse", repos="https://cloud.r-project.org/", Ncpus=8)

install.packages(c("devtools","mvtnorm","loo","coda"), repos="https://cloud.r-project.org/", dependencies=TRUE, Ncpus=8)
library(devtools)
install_github("rmcelreath/rethinking",ref="Experimental")

0 comments on commit 1a076b6

Please sign in to comment.