|
1 | 1 |
|
2 | | -The XIMERA Project |
3 | | -================== |
| 2 | +This repo contains a version of the Ximera server. |
4 | 3 |
|
5 | | -This 'development' branch of the 'XimeraProject/server' repository is a temporary and adhoc way to keep track of an intermediate solution for upgrading the ximera server. |
| 4 | +# Building a ximeraserver docker image |
6 | 5 |
|
7 | | -I might very well never be merged into master/main, e.g. if the Ximera Server would get a major rewrite. |
| 6 | +The Dockerfile adds the current folder to a `baseserver` image that is *very* old, and seems hard to rebuild/update. |
8 | 7 |
|
9 | 8 |
|
| 9 | + |
| 10 | + |
| 11 | +# Build of baseserver image |
| 12 | + |
| 13 | +Following hack got a base server, on which the ximeraServer code con be deployed. |
| 14 | +Hopefully, at some point the baseserver will be properly (re-)build, or obsoleted alltogether. |
| 15 | + |
| 16 | +The baseserver image was extracted from a KULeuven ximeraserver by a combination of |
| 17 | + |
| 18 | +* docker export -o image.tar ximeraserver # extract full filesystem from |
| 19 | +* tar -xvf image.tar # extract the tar-file in an empty folder |
| 20 | +* remove some big files in usr/local/bin etc |
| 21 | +* move node_modules into usr/var/server.base |
| 22 | +* tar -cvf ../image.1.2.tar . |
| 23 | +* docker import image.1.2.tar baseserver:v1.2 |
| 24 | +* docker run -it baseserver:v1.2 /bin/bash |
| 25 | +* docker cp sources.list `container`/etc/apt/sources/list |
| 26 | +* (inside container) apt install vim strace |
| 27 | +* docker commit `container` baseserver:v1.3 |
| 28 | + |
| 29 | +The archive-sources for the baseserver: |
| 30 | + |
| 31 | +``` |
| 32 | +deb [trusted=yes] http://archive.debian.org/debian/ stretch main |
| 33 | +deb-src [trusted=yes] http://archive.debian.org/debian/ stretch main |
| 34 | +deb [trusted=yes] http://archive.debian.org/debian/ stretch-backports main |
| 35 | +deb [trusted=yes] http://archive.debian.org/debian-security/ stretch/updates main |
| 36 | +deb-src [trusted=yes] http://archive.debian.org/debian-security/ stretch/updates main |
| 37 | +``` |
| 38 | + |
| 39 | +Don't tell anyone. |
0 commit comments