-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
210 changed files
with
6,299 additions
and
5,300 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Build the dashboard | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.x' | ||
- run: npm ci | ||
- run: cp config/Config.elm.tmp config/Config.elm | ||
- run: npm run build --if-present |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Create release | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- v[0-9]+.[0-9]+.[0-9]+ | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
release: | ||
name: Release pushed tag | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Filter CHANGELOG | ||
run: | | ||
sed '1,/## \[/d;/## \[/Q' CHANGELOG.md > CHANGELOG_LATEST.md | ||
- name: Create release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ github.ref_name }} | ||
run: | | ||
gh release create "${{ github.ref_name }}" \ | ||
--repo="$GITHUB_REPOSITORY" \ | ||
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \ | ||
-F CHANGELOG_LATEST.md \ | ||
--generate-notes |
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ dist | |
tags | ||
ctags_exclude | ||
.env | ||
.env.* | ||
test/*.gs | ||
elm-stuff | ||
.parcel-cache | ||
|
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 |
---|---|---|
@@ -1,10 +1,15 @@ | ||
FROM alpine:3.16 | ||
LABEL maintainer="[email protected]" | ||
FROM alpine:3.19 | ||
LABEL org.opencontainers.image.title="graphsense-dashboard" | ||
LABEL org.opencontainers.image.maintainer="[email protected]" | ||
LABEL org.opencontainers.image.url="https://www.ikna.io/" | ||
LABEL org.opencontainers.image.description="GraphSense's Web GUI for interactive cryptocurrency analysis written" | ||
LABEL org.opencontainers.image.source="https://github.com/graphsense/graphsense-dashboard" | ||
|
||
ENV DOCKER_USER=user | ||
ARG DOCKER_UID=1000 | ||
ENV DOCKER_USER=dockeruser | ||
ENV DOCKER_UID=1000 | ||
ENV REST_URL=http://localhost:9000 | ||
|
||
RUN addgroup -S $DOCKER_USER && adduser -S $DOCKER_USER -G $DOCKER_USER -u $DOCKER_UID | ||
#RUN addgroup -S $DOCKER_USER && adduser -S $DOCKER_USER -G $DOCKER_USER -u $DOCKER_UID | ||
|
||
ENV WORKDIR=/app | ||
|
||
|
@@ -14,30 +19,30 @@ RUN mkdir $WORKDIR && \ | |
|
||
|
||
WORKDIR $WORKDIR | ||
COPY ./docker/docker-entrypoint.sh / | ||
RUN chmod +x /docker-entrypoint.sh | ||
|
||
COPY ./elm.json.base ./elm-tooling.json ./index.html ./package*.json ./vite.config.js $WORKDIR/ | ||
|
||
COPY ./config $WORKDIR/config | ||
RUN cp $WORKDIR/config/Config.elm.tmp $WORKDIR/config/Config.elm | ||
COPY ./src $WORKDIR/src | ||
COPY ./openapi $WORKDIR/openapi | ||
COPY ./public $WORKDIR/public | ||
COPY ./lang $WORKDIR/lang | ||
COPY ./plugins $WORKDIR/plugins | ||
COPY ./plugin_templates $WORKDIR/plugin_templates | ||
COPY ./themes $WORKDIR/themes | ||
COPY ./lib $WORKDIR/lib | ||
COPY ./docker/site.conf /etc/nginx/http.d/ | ||
COPY ./generate.js $WORKDIR/generate.js | ||
|
||
RUN chown -R $DOCKER_USER $WORKDIR && \ | ||
mkdir -p /usr/share/nginx/html /run/nginx && \ | ||
chown -R $DOCKER_USER /usr/share/nginx/html && \ | ||
RUN mkdir -p /usr/share/nginx/html /run/nginx && \ | ||
rm -f /etc/nginx/http.d/default.conf | ||
|
||
USER $DOCKER_USER | ||
RUN npm install | ||
|
||
COPY ./docker/docker-entrypoint.sh / | ||
RUN chmod +x /docker-entrypoint.sh | ||
|
||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
CMD ["nginx", "-g", "daemon off;"] | ||
CMD ["nginx", "-g", "pid /tmp/nginx.pid;daemon off;"] | ||
EXPOSE 8000 |
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
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
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.