Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Commit

Permalink
Fix README's path to Dockerfile and fix Dockerfiles' file references (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nutjob4life authored Sep 22, 2021
1 parent fda2fd1 commit ee41fcd
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 13 deletions.
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,23 @@ Note, the registry index in elasticSearch is hard-coded. It need to be `registry
mvn clean
mvn install
mvn spring-boot:run


👉 **Note:** in order to run in this way, you will need to modify the `spring-boot-starter-thymeleaf` dependency by pinning it to version `1.5.1.RELEASE` and excluding the `logback-classic` artifact in the `pom.xml` file as follows:

```xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
<version>1.5.1.RELEASE</version>
<exclusions>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</exclusion>
</exclusions>
</dependency>
```


### Usage

Expand Down Expand Up @@ -83,7 +99,7 @@ Have a registry deployed, for example with docker as described in https://github

```
docker image build --build-arg version=$(git rev-parse HEAD) \
--file Dockerfile.local \
--file docker/Dockerfile.local \
--tag registry-api-service:$(git rev-parse HEAD) \
.
```
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.http
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ RUN mkdir /usr/local/registry-api-service \
&& echo ${VERSION} > version.txt

# Copy the data into the building container
COPY LICENSE.txt /usr/local/registry-api-service
COPY LICENSE.md /usr/local/registry-api-service
COPY NOTICE.txt /usr/local/registry-api-service
COPY README.txt /usr/local/registry-api-service
COPY README.md /usr/local/registry-api-service

# Resources shared with the rest of the world
EXPOSE 80
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.http.dev
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ RUN mkdir /usr/local/registry-api-service \
&& rm -rf /var/lib/apt/lists/*

# Copy the data into the building container
COPY LICENSE.txt /usr/local/registry-api-service
COPY LICENSE.md /usr/local/registry-api-service
COPY NOTICE.txt /usr/local/registry-api-service
COPY README.txt /usr/local/registry-api-service
COPY README.md /usr/local/registry-api-service

# Resources shared with the rest of the world
EXPOSE 80
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.https
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ RUN mkdir /usr/local/registry-api-service \
&& echo ${VERSION} > version.txt

# Copy the data into the building container
COPY LICENSE.txt /usr/local/registry-api-service
COPY LICENSE.md /usr/local/registry-api-service
COPY NOTICE.txt /usr/local/registry-api-service
COPY README.txt /usr/local/registry-api-service
COPY README.md /usr/local/registry-api-service

# Resources shared with the rest of the world
EXPOSE 443
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.https.dev
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ RUN mkdir /usr/local/registry-api-service \
&& echo ${VERSION} > version.txt

# Copy the data into the building container
COPY LICENSE.txt /usr/local/registry-api-service
COPY LICENSE.md /usr/local/registry-api-service
COPY NOTICE.txt /usr/local/registry-api-service
COPY README.txt /usr/local/registry-api-service
COPY README.md /usr/local/registry-api-service

# Resources shared with the rest of the world
EXPOSE 443
Expand Down
6 changes: 3 additions & 3 deletions docker/Dockerfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
RUN mkdir /usr/local/registry-api-service-${VERSION}

# Copy the data into the building container
COPY LICENSE.txt /usr/local/registry-api-service-${VERSION}
COPY LICENSE.md /usr/local/registry-api-service-${VERSION}
COPY NOTICE.txt /usr/local/registry-api-service-${VERSION}
COPY README.txt /usr/local/registry-api-service-${VERSION}
COPY README.md /usr/local/registry-api-service-${VERSION}
COPY pom.xml /usr/local/registry-api-service-${VERSION}
COPY src /usr/local/registry-api-service-${VERSION}/src

Expand All @@ -33,4 +33,4 @@ RUN cd /usr/local/registry-api-service-${VERSION} && \

# Run the sevice by default
WORKDIR /usr/local/registry-api-service-${VERSION}
CMD ["mvn", "spring-boot:run"]
CMD ["mvn", "spring-boot:run"]

0 comments on commit ee41fcd

Please sign in to comment.