-
Notifications
You must be signed in to change notification settings - Fork 100
Add rockylinux support #196
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
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
ab49d58
Add rocky linux support
Dean-Coakley 9f128b8
Fix centos Docker image. WIP support base image override
Dean-Coakley 5bb5f36
Fix debian baseimage runs
Dean-Coakley 846811d
Fix docker volume mount
Dean-Coakley b7e2f59
WIP: Add matrix os testing
Dean-Coakley 3f48995
Quote base image tags
Dean-Coakley d7aa33a
Add GitHub actions matrix testing. PR feedback
Dean-Coakley 3245aef
Build amd64 rpm packages
Dean-Coakley 17f6780
Fix rpm builds
Dean-Coakley 49800d0
Fix rpm packaging
Dean-Coakley d43b8fc
Fmt bash
Dean-Coakley d72bef3
Revert logic change
Dean-Coakley a68c116
Split rocky packaging so only rocky gets arm64 packages
Dean-Coakley 63df835
Fix rocky packaging
Dean-Coakley efbabae
Disable amd64 matrix for now
Dean-Coakley 1883609
Lint
Dean-Coakley 5f8122a
Use arm runner action and detect OS arch
Dean-Coakley b26a016
Enlarge image to allow install
Dean-Coakley 41beae6
Test separate arm64 stage
Dean-Coakley 488f5c0
Use go get for go1.15 support
Dean-Coakley 116763b
Remove testing on arm64 for now
Dean-Coakley 2d83288
Merge branch 'main' into add-rocky-support
Dean-Coakley 32570a9
Merge branch 'main' into add-rocky-support
Dean-Coakley 2fba720
Fix goarch builds
Dean-Coakley d8e3303
Mv centos->rockylinux
Dean-Coakley f070687
Revert var declaration change
Dean-Coakley a486e2e
Fix setting CI args
Dean-Coakley 1187119
Override correct Makefile var. Quote integration test data
Dean-Coakley 70c68a2
Fix expected uninstall log map
Dean-Coakley 4745510
Add api integration fixes
Dean-Coakley 7b6118e
Merge branch 'main' into add-rocky-support
Dean-Coakley 9ba41b4
Copy over api dockerfile fixes
Dean-Coakley File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| ARG BASE_IMAGE | ||
| FROM ${BASE_IMAGE} as install-nginx | ||
| LABEL maintainer="NGINX Agent Maintainers <agent@nginx.com>" | ||
|
|
||
| ARG NGINX_CONF | ||
| ARG ENTRY_POINT | ||
|
|
||
| WORKDIR /agent | ||
| COPY ./ /agent | ||
| COPY $ENTRY_POINT /agent/entrypoint.sh | ||
|
|
||
| RUN set -x \ | ||
| && groupadd --system --gid 101 nginx \ | ||
| && adduser -g nginx --system --no-create-home --home /nonexistent --shell /bin/false --uid 101 nginx \ | ||
| && usermod -s /sbin/nologin nginx \ | ||
| && usermod -L nginx \ | ||
| && yum install -y git \ | ||
| wget \ | ||
| procps \ | ||
| make \ | ||
| vim \ | ||
| nginx | ||
|
|
||
| RUN chmod +x /agent/entrypoint.sh | ||
| STOPSIGNAL SIGTERM | ||
|
|
||
| EXPOSE 80 443 | ||
|
|
||
| ENTRYPOINT ["/agent/entrypoint.sh"] | ||
|
|
||
|
|
||
| FROM install-nginx as install-agent | ||
|
|
||
| ARG PACKAGE_NAME | ||
|
|
||
| RUN yum localinstall -y /agent/build/$PACKAGE_NAME.rpm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| version: '3.9' | ||
|
|
||
| networks: | ||
| monitoring: | ||
| driver: bridge | ||
|
|
||
| services: | ||
| agent: | ||
| build: | ||
| context: ../../../ | ||
| dockerfile: ./scripts/docker/nginx-oss/rockylinux/Dockerfile | ||
| target: install-agent | ||
| args: | ||
| PACKAGE_NAME: ${PACKAGE_NAME} | ||
| BASE_IMAGE: ${BASE_IMAGE} | ||
| ENTRY_POINT: "./scripts/docker/nginx-oss/entrypoint.sh" | ||
| ports: | ||
| - 9091:9091 | ||
| networks: | ||
| - monitoring | ||
| volumes: | ||
| - ./nginx.conf:/etc/nginx/nginx.conf | ||
| - ./nginx-agent.conf:/etc/nginx-agent/nginx-agent.conf |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| version: '3.9' | ||
|
|
||
| services: | ||
| agent: | ||
| build: | ||
| context: ../../../ | ||
| dockerfile: ./scripts/docker/nginx-oss/rockylinux/Dockerfile | ||
| target: install-nginx | ||
| args: | ||
| PACKAGE_NAME: ${PACKAGE_NAME} | ||
| BASE_IMAGE: ${BASE_IMAGE} | ||
| ENTRY_POINT: "./scripts/docker/nginx-oss/agentless-entrypoint.sh" | ||
| ports: | ||
| - 80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.