Docker

From syn2cat - HackerSpace.lu
(Difference between revisions)
Jump to: navigation, search
(Mediawiki)
Line 22: Line 22:
  
 
* firefox http://localhost:8080/
 
* firefox http://localhost:8080/
 
+
** database host: mysql
* database host: mysql
+
** database name: mysql
* database name: mysql
+
** table prefix: mw
* table prefix: mw
+
** username: root
* username: root
+
** password: my-secret-pw
* 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
* 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==
 
==Engelsystem==

Revision as of 20:10, 30 January 2016

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

Yeah, DAU-docker!

ATTENTION this uses default passwords, and is completely unsecure !!!!

First install docker

  • 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

  • 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 mysql-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