Coder Social home page Coder Social logo

rvt2-docker's Introduction

Build

Build the docker image from the root of the repository with:

cd build
git clone https://github.com/IncideDigital/rvt2.git rvt2
cd rvt2
git submodule init
git submodule update
cd ..
docker build -t incide/rvt2-base:latest -f Dockerfile.base .
docker build -t incide/rvt2-tools:latest -f Dockerfile.tools .
docker build -t incide/rvt2:latest -f Dockerfile .
  • rvt2:base contains most of the dependencies (python, libraries...) and acts as a base system for the rvt2.
  • rvt2:tools contains external tools that are not in Debian repositories and must be updated and built manually.
  • rvt2:latest includes the rvt2.

The split allows building new images for rvt2 fast by reusing the first images and only rebuilding the third one after a change in the rvt2 itself

Usage

A script called rvt2 is provided to use rvt2 in a docker container. The script accepts the following parameters:

  • ./rvt2 start: Start the rvt2 docker container.
  • ./rvt2 stop: Stop the rvt2 docker container. This will delete all unsaved data (that is, everything outside of /mnt/images and /mnt/morgue inside the container).
  • ./rvt2 shell: Get a bash shell running on user rvt inside the rvt2 running container. Use this to use rvt2.
  • ./rvt2 root: Get a bash root shell inside the rvt2 running container. Use this for testing.
  • ./rvt2 export: Save the image rvt2:latest in a file named rvt2:latest.tar.gz. History and layers are included. You can import this image using: zcat rvt2:latest.tar.gz | docker import - rvt2:latest
  • ./rvt2 --casename 12345 --source 01 --params arg=2 -- otherpath (i.e: any other thing): run the command in docker.

The script ./rvt2 contains some variables to define paths for the imagedir and morgue, change them as you see fit. Default values:

  • morgue: a directory morgue in the current dir. It will be created if if doesn't exist. Mapped to /morgue.
  • images: a directory images in the current dir. It will be created if if doesn't exist. Mapped to /morgue/images.
  • addons: a directory addons in the current dir. It will be created if it doesn't exist. Mapped to /opt/rvt2/addons.
  • local.cfg: local configuration. Mapped to /opt/rvt2/config/local.cfg.

rvt2-docker's People

Contributors

incide-tecnico avatar mcardonaes avatar pgarcia-ncd avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rvt2-docker's Issues

pull access denied for incide/rvt2-tools, repository does not exist or may require 'docker login'

Hello,

Executing last command following your steps to build docker I´ve got this error:

xxxx@ubuntus:~/rtv2/rvt2-docker/build$ sudo docker build -t incide/rvt2:latest -f Dockerfile .
free(): invalid pointer
SIGABRT: abort
PC=0x7f1dd0619e97 m=0 sigcode=18446744073709551610
signal arrived during cgo execution

goroutine 1 [syscall, locked to thread]:
runtime.cgocall(0x4afd50, 0xc420045cc0, 0xc420045ce8)
/usr/lib/go-1.8/src/runtime/cgocall.go:131 +0xe2 fp=0xc420045c90 sp=0xc420045c50
github.com/docker/docker-credential-helpers/secretservice._Cfunc_free(0x1398da0)
github.com/docker/docker-credential-helpers/secretservice/_obj/_cgo_gotypes.go:111 +0x41 fp=0xc420045cc0 sp=0xc420045c90
github.com/docker/docker-credential-helpers/secretservice.Secretservice.List.func5(0x1398da0)
/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/secretservice/secretservice_linux.go:96 +0x60 fp=0xc420045cf8 sp=0xc420045cc0
github.com/docker/docker-credential-helpers/secretservice.Secretservice.List(0x0, 0x756060, 0xc420014390)
/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/secretservice/secretservice_linux.go:97 +0x217 fp=0xc420045da0 sp=0xc420045cf8
github.com/docker/docker-credential-helpers/secretservice.(*Secretservice).List(0x77e548, 0xc420045e88, 0x410022, 0xc4200142f0)
:4 +0x46 fp=0xc420045de0 sp=0xc420045da0
github.com/docker/docker-credential-helpers/credentials.List(0x756ba0, 0x77e548, 0x7560e0, 0xc42000e018, 0x0, 0x10)
/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:145 +0x3e fp=0xc420045e68 sp=0xc420045de0
github.com/docker/docker-credential-helpers/credentials.HandleCommand(0x756ba0, 0x77e548, 0x7ffcd11178a9, 0x4, 0x7560a0, 0xc42000e010, 0x7560e0, 0xc42000e018, 0x40e398, 0x4d35c0)
/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:60 +0x16d fp=0xc420045ed8 sp=0xc420045e68
github.com/docker/docker-credential-helpers/credentials.Serve(0x756ba0, 0x77e548)
/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:41 +0x1cb fp=0xc420045f58 sp=0xc420045ed8
main.main()
/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/secretservice/cmd/main_linux.go:9 +0x4f fp=0xc420045f88 sp=0xc420045f58
runtime.main()
/usr/lib/go-1.8/src/runtime/proc.go:185 +0x20a fp=0xc420045fe0 sp=0xc420045f88
runtime.goexit()
/usr/lib/go-1.8/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc420045fe8 sp=0xc420045fe0

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/lib/go-1.8/src/runtime/asm_amd64.s:2197 +0x1

rax 0x0
rbx 0x7ffcd11158d0
rcx 0x7f1dd0619e97
rdx 0x0
rdi 0x2
rsi 0x7ffcd1115660
rbp 0x7ffcd11159d0
rsp 0x7ffcd1115660
r8 0x0
r9 0x7ffcd1115660
r10 0x8
r11 0x246
r12 0x7ffcd11158d0
r13 0x1000
r14 0x0
r15 0x30
rip 0x7f1dd0619e97
rflags 0x246
cs 0x33
fs 0x0
gs 0x0
Sending build context to Docker daemon 74.49MB
Step 1/9 : FROM incide/rvt2-tools:latest
pull access denied for incide/rvt2-tools, repository does not exist or may require 'docker login'
jmma@ubuntuservicios:~/rtv2/rvt2-docker/build$ sudo docker build -t incide/rvt2:latest -f Dockerfile .
free(): invalid pointer
SIGABRT: abort
PC=0x7f4d80391e97 m=0 sigcode=18446744073709551610
signal arrived during cgo execution

goroutine 1 [syscall, locked to thread]:
runtime.cgocall(0x4afd50, 0xc420045cc0, 0xc420045ce8)
/usr/lib/go-1.8/src/runtime/cgocall.go:131 +0xe2 fp=0xc420045c90 sp=0xc420045c50
github.com/docker/docker-credential-helpers/secretservice._Cfunc_free(0x806da0)
github.com/docker/docker-credential-helpers/secretservice/_obj/_cgo_gotypes.go:111 +0x41 fp=0xc420045cc0 sp=0xc420045c90
github.com/docker/docker-credential-helpers/secretservice.Secretservice.List.func5(0x806da0)
/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/secretservice/secretservice_linux.go:96 +0x60 fp=0xc420045cf8 sp=0xc420045cc0
github.com/docker/docker-credential-helpers/secretservice.Secretservice.List(0x0, 0x756060, 0xc420014390)
/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/secretservice/secretservice_linux.go:97 +0x217 fp=0xc420045da0 sp=0xc420045cf8
github.com/docker/docker-credential-helpers/secretservice.(*Secretservice).List(0x77e548, 0xc420045e88, 0x410022, 0xc4200142f0)
:4 +0x46 fp=0xc420045de0 sp=0xc420045da0
github.com/docker/docker-credential-helpers/credentials.List(0x756ba0, 0x77e548, 0x7560e0, 0xc42000e018, 0x0, 0x10)
/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:145 +0x3e fp=0xc420045e68 sp=0xc420045de0
github.com/docker/docker-credential-helpers/credentials.HandleCommand(0x756ba0, 0x77e548, 0x7fffbe3278a9, 0x4, 0x7560a0, 0xc42000e010, 0x7560e0, 0xc42000e018, 0x40e398, 0x4d35c0)
/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:60 +0x16d fp=0xc420045ed8 sp=0xc420045e68
github.com/docker/docker-credential-helpers/credentials.Serve(0x756ba0, 0x77e548)
/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/obj-x86_64-linux-gnu/src/github.com/docker/docker-credential-helpers/credentials/credentials.go:41 +0x1cb fp=0xc420045f58 sp=0xc420045ed8
main.main()
/build/golang-github-docker-docker-credential-helpers-cMhSy1/golang-github-docker-docker-credential-helpers-0.5.0/secretservice/cmd/main_linux.go:9 +0x4f fp=0xc420045f88 sp=0xc420045f58
runtime.main()
/usr/lib/go-1.8/src/runtime/proc.go:185 +0x20a fp=0xc420045fe0 sp=0xc420045f88
runtime.goexit()
/usr/lib/go-1.8/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc420045fe8 sp=0xc420045fe0

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/lib/go-1.8/src/runtime/asm_amd64.s:2197 +0x1

rax 0x0
rbx 0x7fffbe326880
rcx 0x7f4d80391e97
rdx 0x0
rdi 0x2
rsi 0x7fffbe326610
rbp 0x7fffbe326980
rsp 0x7fffbe326610
r8 0x0
r9 0x7fffbe326610
r10 0x8
r11 0x246
r12 0x7fffbe326880
r13 0x1000
r14 0x0
r15 0x30
rip 0x7f4d80391e97
rflags 0x246
cs 0x33
fs 0x0
gs 0x0
Sending build context to Docker daemon 74.49MB
Step 1/9 : FROM incide/rvt2-tools:latest
pull access denied for incide/rvt2-tools, repository does not exist or may require 'docker login'

Thank you for your effort.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.