Skip to content
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

Add submodule link to HOPM rather than a build-time git clone #94

Merged
merged 2 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,20 @@ updates:
directory: "/"
schedule:
interval: "daily"
commit-message:
# Prefix all commit messages with "npm: "
prefix: "[GHA] "
- package-ecosystem: "docker" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
commit-message:
# Prefix all commit messages with "npm: "
prefix: "[Docker] "
- package-ecosystem: "gitsubmodule"
directory: "/" # Location of package manifests
schedule:
interval: "daily"
commit-message:
# Prefix all commit messages with "npm: "
prefix: "[HOPM] "
2 changes: 2 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
with:
submodules: recursive

-
name: Set up QEMU
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "src"]
path = src
url = https://github.com/ircd-hybrid/hopm.git
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
ARG PKG="git gcc make binutils libc6-compat g++ openssl-dev"
ARG PKG="gcc make binutils libc6-compat g++ openssl-dev"

## Build Container
FROM alpine:3.20.3 AS build

ARG PKG
#COPY ./hopm /usr/src/hopm
WORKDIR /src
COPY ./src /src

RUN apk add --no-cache --virtual .build-deps ${PKG} \
&& git clone --depth 1 https://github.com/ircd-hybrid/hopm.git /src \
&& ./configure --prefix=/app --sysconfdir=/hopm \
&& make && make install \
&& apk del .build-deps


## Runtime Container
FROM alpine:3.20.3 AS app
COPY --from=build /app /app
WORKDIR /hopm
Expand Down
1 change: 1 addition & 0 deletions src
Submodule src added at 79796f
Loading