Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

PhysikOnline/elearning-app

Repository files navigation

Set-up

Set up Docker, it is described here: https://www.docker.com/get-docker. Do NOT use Docker Toolbox. After installed Docker, you launch it an login (if you have not an account yet, this is a good opportunity to create one) Then get in the Docker settings -> Deamon -> (change configuration option von Basic to Advanced) and add the line "storage-driver": "aufs" it should look like this:

{
  "registry-mirrors": [],
  "insecure-registries": [],
  "debug": true,
  "experimental": false,
  "storage-driver": "aufs"
}

You probably need to enable virtualization in you BIOS. For troubleshooting, maybe try the methods listed on this site:

https://stackoverflow.com/questions/39684974/docker-for-windows-error-hardware-assisted-virtualization-and-data-execution-p

AND YOURE DONE! Pretty fast, wasn't it?

Build and run the container

for building use:

docker-compose up

Installing node dependencies

For installing node dependencies you use:

docker-compose run --rm app /bin/bash

for entereing the console in the docker container. There you can install packages by running

npm install --save <your-package>

Section for ERRORS

  1. When a Dockerfile is build, the images are partially stored an reused. This could lead to some problems. A intuitive way is to rebuild the whole image. For this execute:
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)

you can check if all images are deleted by running docker ps -a which lists all images.

  1. the next step ist to restart docker by right-klicking the docker icon in your taskbar and smash restart.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published