mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-26 20:18:52 +00:00
clean up transfused build
Signed-off-by: Justin Cormack <justin@specialbusservice.com>
This commit is contained in:
parent
b06a5fa6eb
commit
b75711b4cd
@ -1,7 +1,7 @@
|
|||||||
all:
|
all:
|
||||||
$(MAKE) -C proxy
|
$(MAKE) -C proxy
|
||||||
$(MAKE) -C diagnostics
|
$(MAKE) -C diagnostics
|
||||||
$(MAKE) -C transfused OS=linux
|
$(MAKE) -C transfused
|
||||||
$(MAKE) -C tap-vsockd
|
$(MAKE) -C tap-vsockd
|
||||||
$(MAKE) -C hvtools
|
$(MAKE) -C hvtools
|
||||||
$(MAKE) -C docker
|
$(MAKE) -C docker
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
FROM mobylinux/alpine-build-c:1b53976210ba819823eda5b1d0d3ea337772e97b
|
FROM mobylinux/alpine-build-c:1b53976210ba819823eda5b1d0d3ea337772e97b
|
||||||
|
|
||||||
RUN mkdir -p /transfused
|
|
||||||
WORKDIR /transfused
|
|
||||||
|
|
||||||
COPY . /transfused
|
COPY . /transfused
|
||||||
|
|
||||||
RUN make transfused
|
WORKDIR /transfused
|
||||||
|
|
||||||
|
RUN cc -g -static -Wall -Werror -o transfused transfused.c transfused_log.c transfused_vsock.c
|
||||||
|
|
||||||
|
CMD ["tar", "cf", "-", "transfused"]
|
||||||
|
@ -1,18 +1,8 @@
|
|||||||
.PHONY: all
|
DEPS=Dockerfile $(wildcard *.c *.h)
|
||||||
|
|
||||||
HDR=transfused.h transfused_log.h transfused_vsock.h
|
|
||||||
SRC=transfused.c transfused_log.c transfused_vsock.c
|
|
||||||
DEPS=$(HDR) $(SRC)
|
|
||||||
|
|
||||||
|
|
||||||
all: Dockerfile $(DEPS)
|
|
||||||
docker build -t transfused:build .
|
|
||||||
docker run --rm transfused:build cat transfused > transfused
|
|
||||||
chmod 755 transfused
|
|
||||||
|
|
||||||
transfused: $(DEPS)
|
transfused: $(DEPS)
|
||||||
gcc -g -static -Wall -Werror -o transfused $(SRC)
|
tar cf - $(DEPS) | docker build -t transfused:build -
|
||||||
|
docker run --rm --net=none transfused:build | tar xf -
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f transfused
|
rm -f transfused
|
||||||
docker images -q transfused:build | xargs docker rmi -f || true
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|
||||||
#include "include/uapi/linux/vm_sockets.h"
|
#include "vm_sockets.h"
|
||||||
|
|
||||||
#include "transfused_log.h"
|
#include "transfused_log.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user