Skip to content

Commit c8ef1b0

Browse files
author
Jesse S
authored
build: Install git dependency for docker build (#162)
* build: Install git dependency for docker build * ci: Add docker build workflow
1 parent 2f3e05f commit c8ef1b0

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

.github/workflows/docker-build.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Build x86 Docker Image
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
- name: Build x86 Image
16+
run:
17+
make image

.github/workflows/test.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ on:
33
push:
44
branches:
55
- '**'
6-
pull_request:
7-
branches:
8-
- master
96

107
jobs:
118
build:

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ WORKDIR /workspace/app
55
ENV JAVA_OPTS="-Djdk.lang.Process.launchMechanism=vfork"
66

77
COPY . /workspace/app
8+
RUN apt-get -y update && apt-get -y install git
89
RUN ./gradlew clean build -x test
910
RUN mkdir -p build/dependency && cd build/dependency; jar -xf ../libs/*[^p][^l][^a][^i][^n].jar
1011

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ package: clean validatedocs build
1616
build:
1717
./gradlew build -x test
1818

19+
.PHONY: image
20+
image:
21+
docker build -t aerospike-rest-gateway .
22+
1923
.PHONY: run
2024
run:
2125
./gradlew bootRun

0 commit comments

Comments
 (0)