Skip to content

Commit 7c40b5c

Browse files
committedMar 23, 2023
New: Add latest memgraph-platform version and fixes for the apps in the Dockerfile
1 parent f184ffe commit 7c40b5c

File tree

5 files changed

+8
-36
lines changed

5 files changed

+8
-36
lines changed
 

‎Dockerfile

+2-30
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,3 @@
1-
FROM golang:1.19-alpine AS builder
2-
ENV CGO_ENABLED=0
3-
WORKDIR /backend
4-
COPY backend/go.* .
5-
RUN --mount=type=cache,target=/go/pkg/mod \
6-
--mount=type=cache,target=/root/.cache/go-build \
7-
go mod download
8-
COPY backend/. .
9-
RUN --mount=type=cache,target=/go/pkg/mod \
10-
--mount=type=cache,target=/root/.cache/go-build \
11-
go build -trimpath -ldflags="-s -w" -o bin/service
12-
13-
FROM --platform=$BUILDPLATFORM node:18.12-alpine3.16 AS client-builder
14-
WORKDIR /ui
15-
# cache packages in layer
16-
COPY ui/package.json /ui/package.json
17-
COPY ui/package-lock.json /ui/package-lock.json
18-
RUN --mount=type=cache,target=/usr/src/app/.npm \
19-
npm set cache /usr/src/app/.npm && \
20-
npm ci
21-
# install
22-
COPY ui /ui
23-
RUN npm run build
24-
251
FROM alpine
262
LABEL org.opencontainers.image.title="Memgraph" \
273
org.opencontainers.image.description="Memgraph Extension for Docker Desktop" \
@@ -34,15 +10,11 @@ LABEL org.opencontainers.image.title="Memgraph" \
3410
com.docker.desktop.extension.icon="https://raw.githubusercontent.com/collabnix/memgraph-docker-extension/main/memgraph.svg" \
3511
com.docker.extension.detailed-description="Memgraph is a high-performance, in-memory graph database that provides fast and scalable data storage and querying capabilities for graph data. Memgraph is a streaming graph application platform that helps you wrangle your streaming data, build sophisticated models you can query in real-time, and develop applications you never thought possible within a couple of days, not months. With Memgraph Docker Extension, now you can setup Memgraph platform in no seconds." \
3612
com.docker.extension.publisher-url='[{"title":"GitHub", "url":"https://github.com/collabnix/memgraph-docker-extension/"}]' \
37-
com.docker.extension.additional-urls='[{"title":"GitHub","url":"https://https://github.com/collabnix/memgraph-docker-extension/"}]' \
13+
com.docker.extension.additional-urls='[{"title":"GitHub","url":"https://github.com/collabnix/memgraph-docker-extension/"}]' \
3814
com.docker.extension.changelog=""
3915

40-
41-
42-
COPY --from=builder /backend/bin/service /
4316
COPY docker-compose.yaml .
4417
COPY metadata.json .
4518
COPY docker.svg .
4619
COPY memgraph.svg .
47-
COPY --from=client-builder /ui/build ui
48-
CMD /service -socket /run/guest-services/backend.sock
20+
COPY ui ui

‎Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
IMAGE?=ajeetraina/memgraph-docker-extension
2-
TAG?=1.0.0
2+
TAG?=1.1.0
33

44
BUILDER=buildx-multi-arch
55

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ If you're in hurry, [click here](https://open.docker.com/extensions/marketplace?
4444
### Install the Extension
4545

4646
```
47-
docker extension install ajeetraina/memgraph-docker-extension:latest
47+
make install-extension
4848
```
4949

5050
### Accessing the Extension

‎docker-compose.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
memgraph-platform:
3-
image: "memgraph/memgraph-platform"
3+
image: "memgraph/memgraph-platform:2.6.5-memgraph2.5.2-lab2.4.0-mage1.6"
44
ports:
55
- "7687:7687"
66
- "3000:3000"
@@ -10,7 +10,7 @@ services:
1010
- mg_log:/var/log/memgraph
1111
- mg_etc:/etc/memgraph
1212
environment:
13-
- MEMGRAPH="--log-level=TRACE"
13+
- MEMGRAPH="--log-level=INFO"
1414
entrypoint: ["/usr/bin/supervisord"]
1515
networks:
1616
- memnet

‎metadata.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"vm": {
44
"composefile": "docker-compose.yaml",
55
"exposes": {
6-
"socket": "backend.sock"
6+
"socket": "extension-memgraph-docker-extension.sock"
77
}
88
},
99
"ui": {
@@ -12,7 +12,7 @@
1212
"src": "index.html",
1313
"root": "ui",
1414
"backend": {
15-
"socket": "backend.sock"
15+
"socket": "extension-memgraph-docker-extension.sock"
1616
}
1717
}
1818
}

0 commit comments

Comments
 (0)
Please sign in to comment.