Skip to content

Commit 4ac5c90

Browse files
Merge pull request #11 from ing-bank/update-plugin
Update plugin to latest version
2 parents a6dfe81 + 20e191d commit 4ac5c90

File tree

4 files changed

+11
-28
lines changed

4 files changed

+11
-28
lines changed

airlock-dev-apache-ranger/Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM maven:3.5.4-jdk-8
22
#FROM openjdk:8u121-jdk
33

44
ARG RANGER_VERSION=1.1.0
5-
ARG RANGER_S3_PLUGIN_VERSION=0.0.1
5+
ARG RANGER_S3_PLUGIN_VERSION=0.0.2
66

77
RUN curl https://jdbc.postgresql.org/download/postgresql-42.2.1.jar -o /opt/postgresql-42.2.1.jar && \
88
curl http://mirrors.whoishostingthis.com/apache/ranger/${RANGER_VERSION}/apache-ranger-${RANGER_VERSION}.tar.gz -o /opt/apache-ranger-${RANGER_VERSION}.tar.gz
@@ -15,16 +15,16 @@ WORKDIR /opt
1515
# TODO: Tried to do some cleanup here, but that removes some necessary plugins
1616
RUN apt-get -q update && apt-get install -y -q python gcc \
1717
&& apt-get autoclean \
18-
&& tar zxvf apache-ranger-${RANGER_VERSION}.tar.gz \
18+
&& tar zxf apache-ranger-${RANGER_VERSION}.tar.gz \
1919
&& rm -f apache-ranger-${RANGER_VERSION}.tar.gz \
2020
&& cp pom.xml apache-ranger-${RANGER_VERSION} \
2121
&& rm pom.xml \
2222
&& cd apache-ranger-${RANGER_VERSION} \
23-
&& mvn package assembly:assembly -DskipTests \
23+
&& mvn -q package assembly:assembly -DskipTests \
2424
&& cp target/ranger-${RANGER_VERSION}-admin.tar.gz /opt \
2525
# && mvn clean \
2626
&& cd /opt \
27-
&& tar zxvf ranger-${RANGER_VERSION}-admin.tar.gz \
27+
&& tar zxf ranger-${RANGER_VERSION}-admin.tar.gz \
2828
&& rm -f ranger-${RANGER_VERSION}-admin.tar.gz \
2929
&& rm -rf apache-ranger-${RANGER_VERSION} \
3030
&& chmod +x /opt/ranger-entrypoint.sh
@@ -42,16 +42,16 @@ RUN apt-get install -y net-tools && \
4242
git checkout tags/${RANGER_S3_PLUGIN_VERSION} && \
4343
mvn package -DskipTests && \
4444
mkdir -p ${RANGER_HOME}/ews/webapp/WEB-INF/classes/ranger-plugins/s3/ && \
45-
mv /tmp/apache-ranger-s3-plugin/target/ranger-s3-plugin-0.1.jar ${RANGER_HOME}/ews/webapp/WEB-INF/classes/ranger-plugins/s3/ && \
45+
mv /tmp/apache-ranger-s3-plugin/target/ranger-s3-plugin-0.2.jar ${RANGER_HOME}/ews/webapp/WEB-INF/classes/ranger-plugins/s3/ && \
4646
mvn clean && \
4747
cd /root && \
4848
rm -rf /tmp/apache-ranger-s3-plugin
4949

5050
COPY resources /tmp/resources
5151
COPY setup-ranger.sh /tmp
5252
COPY entrypoint.sh /tmp
53-
COPY log4j.xml /opt/ranger-1.0.0-admin/ews/webapp/WEB-INF/log4j.xml
54-
COPY log4j.properties /opt/ranger-1.0.0-admin/ews/webapp/WEB-INF/log4j.properties
53+
COPY log4j.xml ${RANGER_HOME}/ews/webapp/WEB-INF/log4j.xml
54+
COPY log4j.properties ${RANGER_HOME}/ews/webapp/WEB-INF/log4j.properties
5555

5656
RUN chmod 777 -R /tmp
5757

airlock-dev-apache-ranger/log4j.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#
1818

1919

20-
log4j.rootLogger = debug,xa_log_appender
20+
log4j.rootLogger = info,xa_log_appender
2121

2222

2323
# xa_logger

airlock-dev-apache-ranger/resources/service/ranger-service-s3.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"name": "testservice",
66
"description": "FOR TESTING PURPOSES, test service",
77
"configs": {
8-
"uid": "ceph-admin",
9-
"endpoint": "http://ceph:8010/admin",
8+
"endpoint": "http://ceph:8010",
109
"secretkey": "secretkey",
1110
"accesskey": "accesskey"
1211
}

airlock-dev-apache-ranger/resources/servicedef/ranger-servicedef-s3.json

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,28 +37,12 @@
3737
"itemId": 2,
3838
"name": "write",
3939
"label": "write"
40-
},
41-
{
42-
"itemId": 3,
43-
"name": "full_control",
44-
"label": "Full control over bucket"
4540
}
4641
],
4742
"configs":
4843
[
4944
{
5045
"itemId": 1,
51-
"name": "uid",
52-
"type": "string",
53-
"subType": "",
54-
"mandatory": true,
55-
"validationRegEx": "",
56-
"validationMessage": "",
57-
"uiHint":"",
58-
"label": "Admin user id"
59-
},
60-
{
61-
"itemId": 2,
6246
"name": "endpoint",
6347
"type": "string",
6448
"subType": "",
@@ -69,7 +53,7 @@
6953
"label": "S3 Endpoint"
7054
},
7155
{
72-
"itemId": 3,
56+
"itemId": 2,
7357
"name": "accesskey",
7458
"type": "string",
7559
"subType": "",
@@ -80,7 +64,7 @@
8064
"label": "Access key"
8165
},
8266
{
83-
"itemId": 4,
67+
"itemId": 3,
8468
"name": "secretkey",
8569
"type": "password",
8670
"subType": "",

0 commit comments

Comments
 (0)