Docker

From syn2cat - HackerSpace.lu
(Difference between revisions)
Jump to: navigation, search
(Created page with "My little page about getting docker to run First install it * sudo apt-get install docker.io * sudo usermod -a -G docker $(id -un) * # logoout/login to get your group attrib...")
 
Line 1: Line 1:
My little page about getting docker to run
+
My little page about getting docker to run, done by somebody having no idea what docker is.
 +
 
 +
Yeah, DAU-docker!
  
 
First install it
 
First install it
Line 5: Line 7:
 
* sudo usermod -a -G docker $(id -un)
 
* sudo usermod -a -G docker $(id -un)
 
* # logoout/login to get your group attribution
 
* # logoout/login to get your group attribution
 +
 +
 +
==Mediawiki
  
 
Create a database  
 
Create a database  
 
* # no idea what this does, I just pasted it from https://hub.docker.com/_/mysql/
 
* # no idea what this does, I just pasted it from https://hub.docker.com/_/mysql/
* docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:tag
+
* docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:latest
  
 
Create a mediawiki
 
Create a mediawiki
 
* # well probably something like found here https://hub.docker.com/r/synctree/mediawiki/
 
* # well probably something like found here https://hub.docker.com/r/synctree/mediawiki/
 +
* docker run --name some-mediawiki --link some-mysql:mysql -p 8080:80 -d synctree/mediawiki
 +
 +
* firefox http://localhost:8080/
 +
 +
* database host: mysql
 +
* database name: mysql
 +
* table prefix: mw
 +
* username: root
 +
* password: my-secret-pw
 +
 +
* at end of setup you get a LocalSettings.php to download
 +
* this file has to be provided to the docker or put into the container. Seems to be several ways to do it
 +
 +
 +
==Engelsystem
 +
Grabbed infos from https://hub.docker.com/r/whiledo/engelsystem-fhmuc-tool/
 +
 +
Make a DB
 +
* docker run --name mysql-engelsystem -e MYSQL_ROOT_PASSWORD=my-secret-pw -p 3306:3306 -d mysql
 +
 +
Setup engels. This is not tested, just plastered together in hope that it works
 +
* docker run -d -p 9090:80 -e mysqlhost="loclahost" --link some-engelsystem:mysql -e installmysql="yes" whiledo/engelsystem-fhmuc-tool
 +
* firefox http://localhost:9090/
 +
 +
If running the docker again, do not give the '-e installmysql="yes" ' part

Revision as of 19:00, 30 January 2016

My little page about getting docker to run, done by somebody having no idea what docker is.

Yeah, DAU-docker!

First install it

  • sudo apt-get install docker.io
  • sudo usermod -a -G docker $(id -un)
  • # logoout/login to get your group attribution


==Mediawiki

Create a database

  • # no idea what this does, I just pasted it from https://hub.docker.com/_/mysql/
  • docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:latest

Create a mediawiki

  • database host: mysql
  • database name: mysql
  • table prefix: mw
  • username: root
  • password: my-secret-pw
  • at end of setup you get a LocalSettings.php to download
  • this file has to be provided to the docker or put into the container. Seems to be several ways to do it


==Engelsystem Grabbed infos from https://hub.docker.com/r/whiledo/engelsystem-fhmuc-tool/

Make a DB

  • docker run --name mysql-engelsystem -e MYSQL_ROOT_PASSWORD=my-secret-pw -p 3306:3306 -d mysql

Setup engels. This is not tested, just plastered together in hope that it works

  • docker run -d -p 9090:80 -e mysqlhost="loclahost" --link some-engelsystem:mysql -e installmysql="yes" whiledo/engelsystem-fhmuc-tool
  • firefox http://localhost:9090/

If running the docker again, do not give the '-e installmysql="yes" ' part

Personal tools
Namespaces

Variants
Actions
Navigation
syn2cat
Hackerspace
Activities
Initiatives
Community
Tools
Tools