3ofcoins / jetpack

**PROTOTYPE** FreeBSD Jail/ZFS based implementation of the Application Container Specification
Other
529 stars 38 forks source link

Issues starting example images #23

Open williamkibira opened 4 years ago

williamkibira commented 4 years ago

Hello , i'll start by saying this is one awesome project , i have been using docker for a little while now in Linux and i'm amazed at how far this particular project has gone , i'm actually dying to use it or perhaps build a PaaS over it when its done . To the issue , i've tried to start the example example.nginx and i get the following log ,

+ jail -f /home/william/.jetpack/pods/5866019e-abce-41db-8434-e69ac1b72e17/jail.conf -v -c jetpack:5866019e-abce-41db-8434-e69ac1b72e17
jetpack:5866019e-abce-41db-8434-e69ac1b72e17: run command: /sbin/ifconfig lo1 inet 172.23.0.15 netmask 255.255.255.255 alias
jetpack:5866019e-abce-41db-8434-e69ac1b72e17: run command: /sbin/mount -t devfs -o ruleset=4 . /home/william/.jetpack/pods/5866019e-abce-41db-8434-e69ac1b72e17/rootfs/0/dev
jetpack:5866019e-abce-41db-8434-e69ac1b72e17: jail_set(JAIL_CREATE) name=jetpack:5866019e-abce-41db-8434-e69ac1b72e17 allow.chflags=true host.hostname=5866019e-abce-41db-8434-e69ac1b72e17 host.hostuuid=5866019e-abce-41db-8434-e69ac1b72e17 ip4.addr=172.23.0.15 osrelease=10.1-RELEASE-p9 path=/home/william/.jetpack/pods/5866019e-abce-41db-8434-e69ac1b72e17/rootfs persist=true securelevel=0
jetpack:5866019e-abce-41db-8434-e69ac1b72e17: created
+ /usr/sbin/jls -d jid dying name | "1 0 jetpack:c49dae4c-382f-4721-827b-4849ae8544bd\n2 0 jetpack:5866019e-abce-41db-8434-e69ac1b72e17\n"
+ /usr/local/libexec/jetpack/stage2 2:0:0:freebsd-base:/.jetpack.build. 'AC_METADATA_URL=http://172.23.0.1:1104/~7cea07a38b1cf0693dd73b24e9d8fac161b47c3ae710e3c3656995fa52c43e947670d4f0fafbbf146b9a10d7a532d490627f7745ab60c7c2c14f7916e743edc7' USER=root LOGNAME=root HOME=/root SHELL=/bin/csh PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TERM=xterm /usr/bin/make .jetpack.build. .jetpack.image.mk=./jetpack.image.mk
env ASSUME_ALWAYS_YES=YES pkg install nginx
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:11:amd64/quarterly, please wait...

Which after some time results in the error below

pkg: Error fetching http://pkg.FreeBSD.org/FreeBSD:11:amd64/quarterly/Latest/pkg.txz: No address record
A pre-built version of pkg could not be found for your system.
Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.
*** Error code 1

Stop.
make: stopped in /.jetpack.build.
run.Command[/usr/local/libexec/jetpack/stage2 2:0:0:freebsd-base:/.jetpack.build. ''\''AC_METADATA_URL=http://172.23.0.1:1104/~7cea07a38b1cf0693dd73b24e9d8fac161b47c3ae710e3c3656995fa52c43e947670d4f0fafbbf146b9a10d7a532d490627f7745ab60c7c2c14f7916e743edc7'\''' USER=root LOGNAME=root HOME=/root SHELL=/bin/csh PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TERM=xterm /usr/bin/make .jetpack.build. .jetpack.image.mk=./jetpack.image.mk]: exit status 1
/usr/home/william/Projects/Virtualization/jetpack/gopath/src/github.com/3ofcoins/jetpack/lib/jetpack/app.go:98: 
/usr/home/william/Projects/Virtualization/jetpack/gopath/src/github.com/3ofcoins/jetpack/lib/jetpack/build.go:217: 
/usr/home/william/Projects/Virtualization/jetpack/gopath/src/github.com/3ofcoins/jetpack/cmd/jetpack/image.go:173: 
/usr/home/william/Projects/Virtualization/jetpack/gopath/src/github.com/3ofcoins/jetpack/cmd/jetpack/command.go:101: 
*** Error code 1

Stop.
make: stopped in /usr/home/william/Projects/Virtualization/jetpack/images/example.nginx

I can only run the first demonstration and get into the root shell for the jail with jetpack run -t 3ofcoins.net/freebsd-base

Any way i can get passed this and run the nginx example ?