swp-fu-eid / eid-fu-swp

Docker-based REST API implemented with Django and restframework.
MIT License
2 stars 1 forks source link

Create documentation for linux #17

Closed m273d15 closed 7 years ago

m273d15 commented 7 years ago

Added in wiki: https://github.com/swp-fu-eid/eid-fu-swp/wiki/Setup-Testenvironment-on-Linux

nils-wisiol commented 7 years ago

@m273d15 , why not use 172.16 as IP4 prefix?

A better way to create cryptographically sound keys would be cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1, instead of the date stanza. It also avoids to sleep for a second.

Could you update the repositories README to include a hint for setup docs in the wiki?

Other than that, I propose to close this.

m273d15 commented 7 years ago

I thought that 172.16 does not work on all environments, but i will try it and ask the team members.

m273d15 commented 7 years ago

I had time to try 172.16, but this led to the error ERROR: for www Cannot start service www: Invalid address 172.16.0.128: It does not belong to any of this network's subnets during the execution of docker-compose up

m273d15 commented 7 years ago

Ok, it was a layer 8 problem. After cleaning my whole setup and recreating the networks, 172.16 works for me!

m273d15 commented 7 years ago

Added information that 172.16 should be used by default and the other way only in the case that the default value does not work