arpa2 / docker-demo

Docker Demonstration Images for ARPA2.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Demos for ARPA2

These are demonstration images based on Docker. They are a basis for our own development, and for sharing the results.

Dependencies are shown in the graphic below.

Build dependencies

Quick start (Video)

To see a usage video in your console, run

script -p demo-identityhub.script

To build the images, run CMake to setup and then make the respective demonstration:

cmake .
make demo-identityhub

The directories contain individual README files. They are installed in the root dir of the images.

Generally, the demo-* directories are targets and wip-* is work in progress. The build-* are helpful temporary images during building; we build stuff in them and then COPY --from to a target image.

Adding images

Please commit a new demo as wip-* until it can actually be tried, at which time it moves to demo-* -- this may save some disappointments.

A good approach is probably to start off with FROM arpa2/build-xxx and when it all works, strip away the unnecessary build environment by switching to FROM arpa2/base or another runtime base, and using COPY --from=xxx to copy necessary elements from the original arpa2/build-xxx that is now a preliminary phase FROM arpa2/build-xxx AS xxx

You can create a typescript console "video" with

script -r <imagename>.script

The dependency graph is re-created any time you run CMake in/on the root dir of this repository. This is a good place and time, because it overviews what you may just have updated. A new image is only created when you have dot installed though. If not, it will quietly fail.

Using on Windows

Docker images can be built on Windows without problem. You can use Docker for Windows, as described below, but it is easier to create a Linux VM (eg. using VirtualBox) and use Docker for Linux instead, because then Hyper-V is not required and one can use IPv6.

Using Docker for Windows

When using Docker for Windows remember that Hyper-V should be enabled and running, and that files are being copied into containers, and those files should not get LF translated to CR-LF, as is the default when cloning a Git repository.

The solution is to setup your repository with

git clone https://github.com/arpa2/docker-demo --config core.autocrlf=input

[credit]

About

Docker Demonstration Images for ARPA2.net


Languages

Language:Python 35.7%Language:HTML 31.9%Language:Dockerfile 12.6%Language:C 9.5%Language:CSS 3.7%Language:Shell 3.0%Language:TeX 1.8%Language:JavaScript 1.3%Language:CMake 0.4%Language:Vim Script 0.0%