Skip to content
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

hello-base package using basic hello world package (from rumprun) #10

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ containers. So far we provide the following:
node-base
python3-base
redis-base
hello-base

### Building the bases

Expand Down
11 changes: 11 additions & 0 deletions cc-build/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM ubuntu:18.04

RUN apt-get update
RUN apt-get install -y build-essential git

ADD rumprun-solo5 /root/nabla-base-build/rumprun

ENV PATH="/root/nabla-base-build/rumprun/rumprun-solo5/bin:${PATH}"
ENV CC="x86_64-rumprun-netbsd-gcc"


35 changes: 35 additions & 0 deletions cc-build/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Copyright (c) 2018 Contributors as noted in the AUTHORS file
#
# Permission to use, copy, modify, and/or distribute this software
# for any purpose with or without fee is hereby granted, provided
# that the above copyright notice and this permission notice appear
# in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
# WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
# AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
# OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

export TOP=$(abspath ..)
all: build_docker

RUMPPKGS=$(TOP)/rumprun-packages
RUMPRUN=$(TOP)/rumprun
include ../Makefile.inc

.PHONY: rumprun-cc
rumprun-cc: rumprun solo5 FORCE
cp -r $(RUMPRUN)/rumprun-solo5 rumprun-solo5

build_docker: submodule_warning $(FILES) rumprun-cc
sudo docker build -f Dockerfile -t nabla-cc-build .
sudo docker tag nabla-hello-base nablact/nabla-cc-build

clean:
rm -rf rumprun-solo5

distclean: clean solo5-clean rumprun-clean