forked from lf-edge/eve
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'lf-edge:master' into master
- Loading branch information
Showing
2,713 changed files
with
390,153 additions
and
35,202 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
|
@@ -6,6 +6,7 @@ dist/ | |
build-tools/bin/ | ||
images/out/ | ||
.go/ | ||
go.work* | ||
tags | ||
tmp/ | ||
mkdocs.yml | ||
|
This file contains 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 |
---|---|---|
|
@@ -6,7 +6,7 @@ See [EVE Wiki](https://wiki.lfedge.org/display/EVE/Community) for governance gui | |
|
||
## List of maintainers (in alphabetical order) | ||
|
||
* Avi Deitcher [email protected] | ||
* Erik Nordmark [email protected] | ||
* Milan Lenco [email protected] | ||
* Roman Shaposhnik [email protected] | ||
* Avi Deitcher `[email protected]` | ||
* Erik Nordmark `[email protected]` | ||
* Milan Lenco `[email protected]` | ||
* Roman Shaposhnik `[email protected]` |
This file contains 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 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 |
---|---|---|
|
@@ -9,17 +9,53 @@ ARG GID | |
# this must be an ARG so it doesn't carry through post-build phase | ||
ARG all_proxy | ||
# hadolint ignore=DL3018 | ||
RUN apk add --no-cache openssh-client git gcc linux-headers libc-dev util-linux libpcap-dev bash vim make protobuf protobuf-dev sudo tar curl graphviz ttf-freefont patch dnsmasq | ||
# we need updated libraries, here we use the same version as for eve/alpine | ||
# hadolint ignore=DL3018 | ||
RUN apk --no-cache --repository https://dl-cdn.alpinelinux.org/alpine/v3.16/main add -U --upgrade zfs-dev zfs-libs | ||
RUN apk add --no-cache openssh-client git gcc linux-headers libc-dev util-linux libpcap-dev bash vim make protobuf \ | ||
protobuf-dev sudo tar curl graphviz ttf-freefont patch dnsmasq ca-certificates build-base gettext-dev \ | ||
libtirpc-dev automake autoconf libtool attr-dev e2fsprogs-dev glib-dev openssl-dev util-linux-dev | ||
|
||
RUN deluser ${USER} ; delgroup ${GROUP} || : | ||
RUN sed -ie /:${UID}:/d /etc/passwd /etc/shadow ; sed -ie /:${GID}:/d /etc/group || : | ||
RUN addgroup -g ${GID} ${GROUP} && adduser -h /home/${USER} -G ${GROUP} -D -H -u ${UID} ${USER} | ||
RUN echo "${USER} ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/${USER} | ||
# dep is deprecated and probably should be gotten rid of; no need to parametrize the version, as there will be no further releases | ||
# hadolint ignore=SC2086,DL4006 | ||
RUN OS="$(uname -o | tr '[:upper:]' '[:lower:]')" && PLATFORM="$(go version | sed 's#^.*'${OS}'/##g')" && curl -o /usr/local/bin/dep -L "https://github.com/golang/dep/releases/download/v0.5.4/dep-${OS}-${PLATFORM}" && chmod +x /usr/local/bin/dep | ||
### Build OpenZFS 2.2.2 libs here for 'make test' and full eve build in one spot | ||
# should be aligned with kernel | ||
# * ZFS on Linux | ||
# coreutils's uname -o breaks above url generation. | ||
# hadolint ignore=DL3018 | ||
RUN apk add --no-cache coreutils | ||
ENV ZFS_VERSION=2.2.2 | ||
ENV ZFS_COMMIT=zfs-${ZFS_VERSION} | ||
ENV ZFS_REPO=https://github.com/openzfs/zfs | ||
|
||
WORKDIR /tmp/zfs | ||
# hadolint ignore=DL3020 | ||
ADD ${ZFS_REPO}/tarball/${ZFS_COMMIT}/ zfs.tgz | ||
RUN tar -zxvf zfs.tgz --strip-components=1 && \ | ||
rm zfs.tgz | ||
|
||
RUN ./autogen.sh && \ | ||
./configure \ | ||
--prefix=/usr \ | ||
--with-tirpc \ | ||
--sysconfdir=/etc \ | ||
--mandir=/usr/share/man \ | ||
--infodir=/usr/share/info \ | ||
--localstatedir=/var \ | ||
--with-config=user \ | ||
--with-udevdir=/lib/udev \ | ||
--disable-systemd \ | ||
--disable-static && \ | ||
./scripts/make_gitrev.sh && \ | ||
make -j "$(getconf _NPROCESSORS_ONLN)" && \ | ||
make DESTDIR=/tmp/zfs-out install-strip | ||
|
||
# cleanup | ||
RUN rm -rf /tmp/zfs-out/usr/share && rm -rf /tmp/zfs-out/usr/src && \ | ||
rm -rf /tmp/zfs-out/etc/init.d && rm -rf /tmp/zfs-out/etc/conf.d | ||
|
||
RUN cp -r /tmp/zfs-out/* / | ||
|
||
|
||
RUN go install github.com/golang/protobuf/[email protected] | ||
RUN go install gotest.tools/[email protected] | ||
RUN go install github.com/seamia/protodot@87817c3d0a8e7af753af15508b51292e941bc7c6 | ||
|
This file contains 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 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
Oops, something went wrong.