Skip to content

Commit

Permalink
Dockerfile changes
Browse files Browse the repository at this point in the history
  • Loading branch information
YashwantGohokar committed Jun 30, 2024
1 parent e25ffcd commit 9cd2c85
Show file tree
Hide file tree
Showing 44 changed files with 3,693 additions and 15 deletions.
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,22 @@ WORKDIR $SRC

RUN COMPONENT=${COMPONENT} make clean build

FROM oraclelinux:8
FROM oraclelinux:8-slim

COPY --from=0 /go/src/github.com/oracle/oci-cloud-controller-manager/dist/* /usr/local/bin/
COPY --from=0 /go/src/github.com/oracle/oci-cloud-controller-manager/image/* /usr/local/bin/

RUN yum install -y util-linux \
&& yum install -y e2fsprogs \
&& yum install -y xfsprogs \
&& yum clean all
RUN microdnf -y install util-linux e2fsprogs xfsprogs && \
microdnf update && \
microdnf clean all

COPY scripts/encrypt-mount /sbin/encrypt-mount
COPY scripts/encrypt-umount /sbin/encrypt-umount
COPY scripts/rpm-host /sbin/rpm-host
COPY scripts/chroot-bash /sbin/chroot-bash

RUN chmod 755 /sbin/encrypt-mount
RUN chmod 755 /sbin/encrypt-umount
RUN chmod 755 /sbin/rpm-host
RUN chmod 755 /sbin/chroot-bash

COPY --from=0 /go/src/github.com/oracle/oci-cloud-controller-manager/dist/* /usr/local/bin/
COPY --from=0 /go/src/github.com/oracle/oci-cloud-controller-manager/dist/* /usr/local/bin/
13 changes: 6 additions & 7 deletions Dockerfile_arm_all
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG CI_IMAGE_REGISTRY

FROM golang:1.20.4 as builder
FROM golang:1.21.5 as builder

ARG COMPONENT

Expand All @@ -14,12 +14,11 @@ WORKDIR $SRC

RUN ARCH=arm make clean build-arm-all

FROM arm64v8/oraclelinux:7-slim
FROM arm64v8/oraclelinux:8-slim

RUN yum install -y util-linux \
&& yum install -y e2fsprogs \
&& yum clean all
\
RUN microdnf -y install util-linux e2fsprogs xfsprogs && \
microdnf update && \
microdnf clean all

COPY scripts/encrypt-mount /sbin/encrypt-mount
COPY scripts/encrypt-umount /sbin/encrypt-umount
Expand All @@ -30,4 +29,4 @@ RUN chmod 755 /sbin/encrypt-umount
RUN chmod 755 /sbin/rpm-host
RUN chmod 755 /sbin/chroot-bash

COPY --from=0 /go/src/github.com/oracle/oci-cloud-controller-manager/dist/arm/* /usr/local/bin/
COPY --from=0 /go/src/github.com/oracle/oci-cloud-controller-manager/dist/arm/* /usr/local/bin/
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ spec:
- --fss-csi-endpoint=unix://var/run/shared-tmpfs/csi-fss.sock
command:
- /usr/local/bin/oci-csi-controller-driver
image: gghcr.io/yashwantgohokar/cloud-provider-oci:v1.29.0
image: ghcr.io/yashwantgohokar/cloud-provider-oci:v1.29.0
imagePullPolicy: IfNotPresent
volumeMounts:
- name: config
Expand Down
92 changes: 92 additions & 0 deletions vendor/github.com/oracle/oci-go-sdk/v65/common/sseReader.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

78 changes: 78 additions & 0 deletions vendor/github.com/oracle/oci-go-sdk/v65/core/address_type.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9cd2c85

Please sign in to comment.