-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
44 lines (38 loc) · 1.88 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
language: java
sudo: required
services:
- docker
env:
- USER_LANGUAGE=en USER_REGION=US HTTP_PORT=8080 NIFI_TOOLKIT_VERSION=1.6.0 NIFI_REGISTRY_VERSION=0.2.0
os: linux
addons:
apt:
packages:
- docker-ce
- curl
# skip the installation step entirely
install: true
#build commands
script:
- docker build --build-arg NIFI_TOOLKIT_VERSION=${NIFI_TOOLKIT_VERSION} --build-arg NIFI_REGISTRY_VERSION=${NIFI_REGISTRY_VERSION} -t nifi-registry .
- docker run --hostname nifi-registry --name nifi-registry -p 127.0.0.1:${HTTP_PORT}:${HTTP_PORT} -d -e NIFI_REGISTRY_WEB_HTTP_PORT=${HTTP_PORT} nifi-registry
- docker images
- docker ps -a
- sleep 20s; curl -i http://localhost:${HTTP_PORT}/nifi-registry/explorer/grid-list
- docker exec -ti nifi-registry /opt/nifi-toolkit/bin/cli.sh registry list-buckets -u http://nifi-registry:8080 --verbose
- docker exec -ti nifi-registry /opt/nifi-toolkit/bin/cli.sh registry create-bucket -bn 'test-bucket' -u http://nifi-registry:8080 --verbose
- docker exec -ti nifi-registry /opt/nifi-toolkit/bin/cli.sh registry list-buckets -u http://nifi-registry:8080 --verbose