-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spt renames #23
Spt renames #23
Changes from all commits
63dfa0e
d8691ef
d7e5fb8
be03b5f
8ce8bee
5da2f9b
e0f0fbb
cd6005f
2e2c1d7
9b7b9ea
4b233a8
aa299c8
fc34a94
31568c5
8ed7896
83397ea
a732671
ffb99aa
b4112e7
b790957
bc6fccf
5767b2e
3702036
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,18 +39,22 @@ gobootstrap: FORCE | |
curl -L https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz | tar xz -C $(GOBOOTSTRAP) --strip-components=1 | ||
|
||
.PHONY: gorump | ||
gorump: gobootstrap rumprun solo5 FORCE | ||
source $(RUMPRUN)/obj/config-PATH.sh && cd $(GORUMP)/go/src && CGO_ENABLED=0 GOROOT_BOOTSTRAP=$(GOBOOTSTRAP) GOOS=rumprun GOARCH=amd64 ./make.bash && cd $(GOBASE) | ||
gorump: gorump_stamp | ||
|
||
gorump_stamp: gobootstrap rumprun | ||
source $(RUMPRUN)/obj/config && source $(RUMPRUN)/obj/config-PATH.sh && \ | ||
cd $(GORUMP)/go/src && CGO_ENABLED=0 GOROOT_BOOTSTRAP=$(GOBOOTSTRAP) GOOS=rumprun GOARCH=amd64 ./make.bash && cd $(GOBASE) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not really a problem for this PR, but in future for aarch64, we should make There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ahh, didn't notice that. Was grepping for x86, will look for amd64 as well. Thanks! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Creating an issue to discuss the proper way of having multiple archs |
||
cp -r $(GORUMP)/go1.5 gorump | ||
cp $(GORUMP)/go1.5/bin/go go | ||
cp -r $(RUMPRUN) rumprun-solo5 | ||
touch $@ | ||
|
||
build_docker: submodule_warning $(FILES) gorump | ||
sudo docker build -f Dockerfile -t nabla-go-base . | ||
cp -r $(RUMPRUN) rumprun-solo5 | ||
sudo docker build --build-arg host_rumproot=$(realpath ../rumprun) -f Dockerfile -t nabla-go-base . | ||
sudo docker tag nabla-go-base nablact/nabla-go-base | ||
rm -rf gobootstrap gorump rumprun-solo5 | ||
|
||
clean: | ||
rm -rf gobootstrap gorump rumprun-solo5 | ||
rm -rf gobootstrap gorump rumprun-solo5 *_stamp | ||
|
||
distclean: clean solo5-clean rumprun-clean | ||
distclean: clean rumprun-clean |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
seccomp: goapp.seccomp | ||
spt: goapp.spt | ||
|
||
goapp.a: $(wildcard *.go) | ||
go build -buildmode=c-archive -v -a -x | ||
|
||
goapp.pseudo: goapp.a | ||
RUMPRUN_STUBLINK=succeed x86_64-rumprun-netbsd-gcc -g -o goapp.pseudo _gorump_main.c goapp.a | ||
|
||
goapp.seccomp: goapp.pseudo | ||
rumprun-bake solo5_ukvm_seccomp goapp.seccomp goapp.pseudo | ||
goapp.spt: goapp.pseudo | ||
rumprun-bake solo5_spt goapp.spt goapp.pseudo | ||
|
||
%.bin: %.pseudo | ||
rumprun-bake hw_virtio $@ $< | ||
|
||
clean: | ||
rm -f goapp.a goapp.h goapp.seccomp goapp.pseudo _gorump_main.c gomaincaller.go | ||
rm -f goapp.a goapp.h goapp.spt goapp.pseudo _gorump_main.c gomaincaller.go |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
FROM scratch | ||
|
||
COPY rootfs/etc /etc | ||
COPY nginx.nabla /nginx.nabla | ||
COPY data /data | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
daemon:x:1: |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
127.0.0.1 localhost localhost. | ||
:1 localhost localhost. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
root:*:0:0::0:0:Charlie &:/:/thereisnoshell | ||
daemon:*:1:1::0:0:The devil himself:/:/thereisnoshell |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# $NetBSD: nsswitch.conf,v 1.6 2009/10/25 00:17:06 tsarna Exp $ | ||
# | ||
# nsswitch.conf(5) - | ||
# name service switch configuration file | ||
# | ||
|
||
|
||
# These are the defaults in libc | ||
# | ||
group: compat | ||
group_compat: nis | ||
hosts: files dns | ||
netgroup: files [notfound=return] nis | ||
networks: files | ||
passwd: compat | ||
passwd_compat: nis | ||
shells: files | ||
|
||
|
||
# List of supported sources for each database | ||
# | ||
# group: compat, dns, files, nis | ||
# group_compat: dns, nis | ||
# hosts: dns, files, nis, mdnsd, multicast_dns | ||
# netgroup: files, nis | ||
# networks: dns, files, nis | ||
# passwd: compat, dns, files, nis | ||
# passwd_compat: dns, nis | ||
# shells: dns, files, nis |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's combine this with the previous two commands into 1
RUN
command so it will just be 1 layer. It'll help us remove the redundantapt-get update too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed