Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

Commit

Permalink
build: fix VERSION copy after removal from repo
Browse files Browse the repository at this point in the history
Signed-off-by: Ernesto Ojeda <ernesto.ojeda@intel.com>
  • Loading branch information
ernestojeda committed Sep 15, 2020
1 parent dda3783 commit 0d7aebf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ test:
clean:
rm -f $(MICROSERVICES)

version:
echo -n ${VERSION}

docker: $(DOCKERS)

docker_device_grove_c:
Expand Down
5 changes: 3 additions & 2 deletions scripts/Dockerfile.alpine-3.11
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ RUN apk add --update --no-cache build-base git gcc cmake make linux-headers yaml

COPY scripts /device-grove/scripts
COPY src /device-grove/src/
COPY VERSION /device-grove
COPY Makefile /device-grove/Makefile
RUN cd /device-grove && make -s version | tee /device-grove/VERSION && rm -f /device-grove/Makefile
RUN mkdir -p /device-grove/build

WORKDIR /device-grove
RUN /device-grove/scripts/build_deps.sh 1
RUN /device-grove/scripts/build.sh

FROM alpine:3.9
FROM alpine:3.11

RUN apk add --update --no-cache linux-headers yaml libmicrohttpd curl libuuid

Expand Down
3 changes: 2 additions & 1 deletion scripts/Dockerfile.alpine-3.11-base
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ RUN apk add --update --no-cache build-base git gcc cmake make linux-headers yaml

COPY scripts /device-grove/scripts
COPY src /device-grove/src/
COPY VERSION /device-grove
COPY Makefile /device-grove/Makefile
RUN cd /device-grove && make -s version | tee /device-grove/VERSION && rm -f /device-grove/Makefile
RUN mkdir -p /device-grove/build

WORKDIR /device-grove
Expand Down

0 comments on commit 0d7aebf

Please sign in to comment.