Skip to content

Commit

Permalink
Include default /etc/nginx files in controller images.
Browse files Browse the repository at this point in the history
Signed-off-by: Nashwan Azhari <[email protected]>
  • Loading branch information
aznashwan committed Aug 12, 2024
1 parent d3e8d4d commit c1d4c93
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions controller/v1.10.1/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ parts:
build-nginx:
plugin: nil
after: ['build-libgrpcpp', 'build-libssl']

source-type: git
source: https://github.com/kubernetes/ingress-nginx
source-tag: controller-v1.10.1
source-depth: 1

build-packages:
- bash
- gcc
Expand Down Expand Up @@ -775,6 +781,7 @@ parts:
cp -rp /opt/* $CRAFT_PART_INSTALL/opt
mkdir -p $CRAFT_PART_INSTALL/etc/nginx
cp -rp $CRAFT_PART_SRC/rootfs/etc/nginx/* $CRAFT_PART_INSTALL/etc/nginx
cp -rp /etc/nginx/* $CRAFT_PART_INSTALL/etc/nginx
# Added files/directories that need creating:
Expand Down
7 changes: 7 additions & 0 deletions controller/v1.11.0/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ parts:
build-nginx:
plugin: nil
after: ['build-libgrpcpp', 'build-libssl']

source-type: git
source: https://github.com/kubernetes/ingress-nginx
source-tag: controller-v1.11.0
source-depth: 1

build-packages:
- bash
- gcc
Expand Down Expand Up @@ -775,6 +781,7 @@ parts:
cp -rp /opt/* $CRAFT_PART_INSTALL/opt
mkdir -p $CRAFT_PART_INSTALL/etc/nginx
cp -rp $CRAFT_PART_SRC/rootfs/etc/nginx/* $CRAFT_PART_INSTALL/etc/nginx
cp -rp /etc/nginx/* $CRAFT_PART_INSTALL/etc/nginx
# Added files/directories that need creating:
Expand Down

0 comments on commit c1d4c93

Please sign in to comment.