Skip to content
Open
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
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.github
2 changes: 1 addition & 1 deletion .github/workflows/push-to-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
fi
echo ::set-output name=build_date::$(date +%s)
echo ::set-output name=docker_platforms::linux/386,linux/amd64,linux/arm/v7,linux/arm/v6,linux/arm64
echo ::set-output name=docker_image::${{ secrets.DOCKER_USERNAME }}/mailhog
echo ::set-output name=docker_image::${{ secrets.DOCKER_USERNAME }}/mailhog-docker-desktop-extension
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
Expand Down
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ RUN set -x \
&& GOPATH=/tmp/gocode go install github.com/mailhog/MailHog@${MAILHOG_VERSION}

FROM alpine:latest
LABEL org.opencontainers.image.title="MailHog" \
org.opencontainers.image.description="An extension to using an existing Dockerfile to also create a Docker Desktop Extension." \
org.opencontainers.image.vendor="CODESIGN2" \
com.docker.desktop.extension.api.version="0.0.1" \
com.docker.desktop.extension.icon="https://avatars.githubusercontent.com/u/10258541?v=4"

COPY ui /ui
COPY metadata.json .
COPY docker-compose.yaml .
COPY hog.svg .

WORKDIR /bin
COPY --from=builder tmp/gocode/bin/MailHog /bin/MailHog
EXPOSE 1025 8025
Expand Down
6 changes: 6 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
services:
LocalStack:
image: ${DESKTOP_PLUGIN_IMAGE}
ports:
- "127.0.0.1:1025:1025" # SMTP
- "127.0.0.1:8025:8025" # WEB UI & API
26 changes: 26 additions & 0 deletions hog.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"icon": "hog.svg",
"vm": {
"composefile": "docker-compose.yaml"
},
"ui": {
"dashboard-tab": {
"title": "MailHog",
"root": "/ui",
"src": "index.html"
}
}
}
5 changes: 5 additions & 0 deletions ui/css/bootstrap-3.3.2.min.css

Large diffs are not rendered by default.

Loading