Skip to content

Commit 5afe9a1

Browse files
authored
chore: update docker compose quickstart (#54)
1 parent 9b07d00 commit 5afe9a1

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
/.idea/
22
/**/target/
3+
/nifi-rel-nifi-*/
4+
Dockerfile*
5+
nifi-**.tar.gz

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1+
NIFI_VERSION?=1.28.1
2+
3+
nifi-image:
4+
wget https://raw.githubusercontent.com/apache/nifi/refs/tags/rel/nifi-$(NIFI_VERSION)/nifi-docker/dockerhub/Dockerfile
5+
curl -L https://github.com/apache/nifi/archive/refs/tags/rel/nifi-$(NIFI_VERSION).tar.gz -o nifi-$(NIFI_VERSION).tar.gz
6+
tar -xzf nifi-$(NIFI_VERSION).tar.gz
7+
docker build -t opentdf-nifi:local -f ./nifi-rel-nifi-$(NIFI_VERSION)/nifi-docker/dockerhub/Dockerfile --build-arg IMAGE_TAG=17-jre --build-arg BASE_URL=https://dlcdn.apache.org --build-arg NIFI_VERSION=$(NIFI_VERSION) --build-arg IMAGE_NAME=public.ecr.aws/docker/library/eclipse-temurin ./nifi-rel-nifi-$(NIFI_VERSION)/nifi-docker/dockerhub
8+
19

210
.PHONY: compose-package
311
compose-package: nar-build
412
@echo "package for docker compose"
13+
mkdir -p deploy/extensions
514
rm -rf deploy/extensions/*.nar
615
cp nifi-tdf-nar/target/*.nar deploy/extensions
716
cp nifi-tdf-controller-services-api-nar/target/*.nar deploy/extensions

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ Upload and use this template in NiFi:
4747
export GITHUB_TOKEN=your gh token
4848
make compose-package
4949
```
50+
1. Build local Nifi Image
51+
52+
```shell
53+
make nifi-image
54+
```
55+
5056
1. Start docker compose
5157
```shell
5258
docker compose up

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3'
22
services:
33
opentdf-nifi:
4-
image: ghcr.io/ttschampel/nifi/nifi-1.25.0-jre17:latest
4+
image: opentdf-nifi:local
55
restart: always
66
ulimits:
77
nofile:

0 commit comments

Comments
 (0)