Skip to content

Commit

Permalink
Merge pull request #17 from PhilBug/mvn_https_fix
Browse files Browse the repository at this point in the history
update maven repositories to use https over http
  • Loading branch information
Skejven committed Jan 17, 2020
2 parents f7723c4 + 355d0e8 commit d53b6af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Not released yet
Nothing now :)

# 0.12.1
- [PR-17](https://github.com/Skejven/aet-docker/pull/17) Update maven repositories to use https over http. Fixes '501-https-required' error while downloading karaf dependecies. More info about the issue [here](https://support.sonatype.com/hc/en-us/articles/360041287334).

# 0.12.0
- [PR-11](https://github.com/Skejven/aet-docker/pull/11) Report docker image base changed from Ubuntu to `httpd` Alpine (`386 MB` to `150 MB`)
- Removed suite generator from the report image (it lacks Open Source license)
Expand Down
6 changes: 4 additions & 2 deletions karaf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ RUN curl -fSL -o /tmp/apache-karaf.tar.gz ${KARAF_DOWNLOAD_URL} \
&& tar --strip-components=1 -C /opt/karaf -xzf /tmp/apache-karaf.tar.gz \
&& rm /tmp/apache-karaf.tar.gz \
&& mkdir -p /opt/karaf/data /opt/karaf/data/log \
&& echo org.ops4j.pax.url.mvn.defaultRepositories = file:///opt/maven/repository@id=local.app@snapshots >> /opt/karaf/etc/org.ops4j.pax.url.mvn.cfg
&& echo org.ops4j.pax.url.mvn.defaultRepositories = file:///opt/maven/repository@id=local.app@snapshots >> /opt/karaf/etc/org.ops4j.pax.url.mvn.cfg \
&& sed -i "s+http://+https://+g" /opt/karaf/etc/org.ops4j.pax.url.mvn.cfg

# download and unzip AET features
RUN curl -fSL -o /tmp/${AET_ARTIFACT} ${AET_ARTIFACT_DOWNLOAD_URL} \
Expand Down Expand Up @@ -97,7 +98,8 @@ RUN mv /opt/karaf/deploy/aet-*.xml /aet/features \
&& chown -R ${KARAF_USER}.${KARAF_USER} /aet/features

RUN chown -R ${KARAF_USER}.${KARAF_USER} /opt/karaf \
&& echo org.ops4j.pax.url.mvn.defaultRepositories = file:///opt/maven/repository@id=local.app@snapshots >> /opt/karaf/etc/org.ops4j.pax.url.mvn.cfg
&& echo org.ops4j.pax.url.mvn.defaultRepositories = file:///opt/maven/repository@id=local.app@snapshots >> /opt/karaf/etc/org.ops4j.pax.url.mvn.cfg \
&& sed -i "s+http://+https://+g" /opt/karaf/etc/org.ops4j.pax.url.mvn.cfg

EXPOSE 1099 8101 8181 44444

Expand Down

0 comments on commit d53b6af

Please sign in to comment.