-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial documentation #1
Conversation
Dockerfile
Outdated
ARG NEXUS_BUILD=SNAPSHOT | ||
|
||
COPY . /nexus-repository-apk/ | ||
RUN cd /nexus-repository-apk/; sed -i "s/3.19.0-02/${NEXUS_VERSION}-${NEXUS_BUILD}/g" pom.xml; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure to check if this is the actual released version of 3.19.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we don't really need these manipulations any more and the 'sed' voodoo. See link in comment below for a simpler Dockerfile (from the nexus-format-archetype code base).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in: 72661e1
Dockerfile
Outdated
|
||
FROM sonatype/nexus3:$NEXUS_VERSION | ||
ARG NEXUS_VERSION=3.19.0 | ||
ARG NEXUS_BUILD=SNAPSHOT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks unused? Should it be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I managed to get rid of most of the NXRM version specific stuff in the Dockerfile. Here is a simpler Dockerfile from the nexus-format-archetype code base. You could just replace all occurrences of "foo" with "apk", and change the FORMAT_VERSION ARG value from "0.0.1" to "0.0.1-SNAPSHOT".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In: 72661e1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggested a few tweaks, hopefully simplifying in nature.
I will also setup a "write key" so the project will be ready to published to central after the CI config is merged.
Dockerfile
Outdated
ARG NEXUS_BUILD=SNAPSHOT | ||
|
||
COPY . /nexus-repository-apk/ | ||
RUN cd /nexus-repository-apk/; sed -i "s/3.19.0-02/${NEXUS_VERSION}-${NEXUS_BUILD}/g" pom.xml; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we don't really need these manipulations any more and the 'sed' voodoo. See link in comment below for a simpler Dockerfile (from the nexus-format-archetype code base).
Dockerfile
Outdated
|
||
FROM sonatype/nexus3:$NEXUS_VERSION | ||
ARG NEXUS_VERSION=3.19.0 | ||
ARG NEXUS_BUILD=SNAPSHOT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I managed to get rid of most of the NXRM version specific stuff in the Dockerfile. Here is a simpler Dockerfile from the nexus-format-archetype code base. You could just replace all occurrences of "foo" with "apk", and change the FORMAT_VERSION ARG value from "0.0.1" to "0.0.1-SNAPSHOT".
@@ -19,7 +19,7 @@ | |||
</parent> | |||
|
|||
<artifactId>apk-parent</artifactId> | |||
<version>0.0.1</version> | |||
<version>0.0.0</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, I'd like to encourage we start using a "-SNAPSHOT" suffix on the version numbers. (I've updated the nexus-format-archetype to do this).
The ORB we use for releasing will handle versions like 0.0.1-SNAPSHOT. One downside is you have to remember to manually bump the version to the next development SNAPSHOT after doing a release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In: c2b77ee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on conversation with @DarthHater, we are going to reverse this change and open an issue to revisit
Added user documentation |
README.md
Outdated
### Requirements | ||
|
||
* [Apache Maven 3.3.3+](https://maven.apache.org/install.html) | ||
* [Java 8+](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Java8. remove + sign
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in: 09471e2
nexus-repository-apk-it/pom.xml
Outdated
@@ -5,7 +5,7 @@ | |||
<parent> | |||
<groupId>org.sonatype.nexus.plugins</groupId> | |||
<artifactId>apk-parent</artifactId> | |||
<version>0.0.1</version> | |||
<version>0.0.0-SNAPSHOT</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in the readme, we have just 0.0.1 here it is -with Snapshot. Need to align to one stile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! I'll reach out to @bhamail and @DarthHater for clarification, I was under the impression circleCI was going to rev it to 0.0.1 but i have a feeling my understanding was wrong.
@@ -1,6 +1,6 @@ | |||
/* | |||
* Sonatype Nexus (TM) Open Source Version | |||
* Copyright (c) 2018-present Sonatype, Inc. | |||
* Copyright (c) 2019-present Sonatype, Inc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was it changed automatically?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aornatovskyy No this was changed manually, most of the documentation was carried over from other community formats and repurposed for the APK community format. I put 2019 since this is a brand new community format (i based the date on first commit year)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No legalese here but I feel like that's appropriate fwiw, it should be creation and beyond.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is correct, it should be the year the plugin/project was created.
docs/APK_USER_DOCUMENTATION.md
Outdated
|
||
You can create a proxy repository in Nexus Repository Manager that will cache packages from a remote APK repository, like | ||
http://dl-cdn.alpinelinux.org/alpine/v3.10/main/. Then, you can make `Alpine` use your Nexus Repository Proxy | ||
instead of the remote repository by editing `/etc/apk/repositories`. More information can be found [here](https://wiki.alpinelinux.org/wiki/Enable_Community_Repository). You may need to first install nano/vim/etc for this to work (i.e. `apk add nano`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nano/vim/etc looks like we have such editor "etc". but at the same time I can put any editor name instead of "etc" @joedragons what do u think about this construction?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with you @aornatovskyy . Perhaps "install an editor, such as nano, vim, etc.," however, I'm not confident on my suggestion since I'm not sure what we're having work. Editing /etc/apk/repositories?
If so, I don't personally feel we need to tell them they may need something to edit a file. If you disagree, I think my confusion is mostly because there's a link in between the edit statement and the "work" statement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aornatovskyy @joedragons Thank you both! I absolutely see the confusion, and yes @joedragons, the work requested of the user is to have them edit the file located at /etc/apk/repositories
. I'll change for clarification.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in: 09471e2
README.md
Outdated
|
||
| Plugin Version | Nexus Repository Version | | ||
|----------------|--------------------------| | ||
| v0.0.1 | 3.19.0-SNAPSHOT | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE: I'm surprised this isn't 3.19.0-1 or 3.20.0-SNAPSHOT given our recent release. I believe you, but just surprised (thus NOTE).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great note! I was unsure myself, @DarthHater what should i be putting for version #? The POMs all reference 3.19.0-SNAPSHOT:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to sort that out. Now that 3.19.0-01 is out, I think the best thing to do would be to cut a release that uses that, and then work with @bhamail to figure out how we want SNAPSHOT stuff to be in the repos.
Looks good to me textually. I don't know about the dockerfile or config.yml but if you'd like my +1 sans that you got it (let me know if you'd like formally). Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is more or less good, I think! Moving forward on other projects it probably makes sense to separate some of the stuff into different PRs, but for this special little snowflake of a project I think this is fine.
Initial documentation for APK Community Format