Skip to content

devnotes

Christian Decker edited this page Aug 13, 2018 · 4 revisions

Development Notes

This is little notebook keeping an unordered list of things I have encounted when developing LoSTanSible.

Docker Contain utilizing a Windows Share

Note that under Windows not every directory can be used as shared folder. The host directory specified in -v <host dir>:<container dir> must be a subdir of C:\Users\<username>\.

Checkout Dockerfile from other repo into my master

The Dockerfile from waleeka's modern-deep-learning-docker Github repo served as a basis for my ow setup. Below I list the steps how to retrieve the Dockerfile from the repo instead of copy&paste.

Rationale: Later updates on the file are just a merge step away.

git remote add mdl-docker https://github.com/waleedka/modern-deep-learning-docker.git
git fetch
git checkout mdl-docker/master -- Dockerfile

Merge Dockerfile updates from other repo into my master

to be completed

Install StarUML3 under Windows without Installer

  1. Download StarUML3 from http://staruml.io/download
  2. Open the StarUML Setup 3.0.1.exe using 7zip.
  3. Copy the content of \$PLUGINSDIR\app-64.7z\ in directory of you choice
  4. Start StarUML.exe

Using virtualenv in Docker under Windows

The regular call

virtualend my_project

does not work when the shared directory is located on the windows host. Rather use the --always-copy option

virtualend --always-copy my_project

Adding images in the GitHub wiki

The GitHub wiki web UI support a dialog where one can specify the image URL. The image can be placed in the repo, which is confusing. If one clones the repo, it will contain stuff not related to the code, but the wiki. There are various other ideas where to stores images for linking them in GitHub wiki.

This gist and this blogpost both describe how to store images within the wiki. I repeat the steps for convenience.

  1. clone your wiki repo
  2. add images to the images folder
  3. reference the images with [[images/MY_IMAGE.PNG]] (no backslash or dot before images)
  4. commit and push
  5. check page

Clone this wiki locally