forked from external-repos/noisedash
Compare commits
8 Commits
221fe79f87
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| 2090abcc51 | |||
| 1104c079dc | |||
| 7973c9e2c8 | |||
| 37774b1b99 | |||
| 5454dac5a7 | |||
| f20ef97230 | |||
| 32f5262b93 | |||
| 34dc770854 |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Noisedash Dev",
|
"name": "Noisedash Dev",
|
||||||
"image": "mcr.microsoft.com/devcontainers/node:20-bookworm",
|
"image": "node:18",
|
||||||
"forwardPorts": [8080, 1432],
|
"forwardPorts": [8080, 1432],
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"8080": { "label": "Vue dev server" },
|
"8080": { "label": "Vue dev server" },
|
||||||
|
|||||||
@@ -25,22 +25,23 @@ jobs:
|
|||||||
- name: Log in to Gitea Container Registry
|
- name: Log in to Gitea Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY_HOST }}
|
registry: gitea.purpleraft.com
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Extract metadata (tags, labels)
|
- name: Extract metadata (tags, labels)
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY_HOST }}/${{ env.REGISTRY_OWNER }}/${{ env.REGISTRY_REPO }}
|
images: gitea.purpleraft.com/${{ gitea.repository_owner }}/noisedash
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=tag
|
type=ref,event=tag
|
||||||
type=sha
|
type=sha
|
||||||
|
type=raw,value=latest,enable={{is_default_branch}}
|
||||||
|
|
||||||
- name: Build (PR only)
|
- name: Build (PR only)
|
||||||
if: ${{ github.event_name == 'pull_request' }}
|
if: ${{ gitea.event_name == 'pull_request' }}
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
@@ -50,20 +51,12 @@ jobs:
|
|||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
- name: Build and push (branches/tags)
|
- name: Build and push (branches/tags)
|
||||||
if: ${{ github.event_name != 'pull_request' }}
|
if: ${{ gitea.event_name != 'pull_request' }}
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
push: true
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
env:
|
|
||||||
# Example: registry.example.com or gitea.example.com
|
|
||||||
REGISTRY_HOST: ${{ secrets.REGISTRY_HOST }}
|
|
||||||
# Example: ryan (your user or org in Gitea)
|
|
||||||
REGISTRY_OWNER: ${{ secrets.REGISTRY_OWNER }}
|
|
||||||
# Example: noisedash (this repo name)
|
|
||||||
REGISTRY_REPO: ${{ secrets.REGISTRY_REPO }}
|
|
||||||
|
|||||||
16
Dockerfile
16
Dockerfile
@@ -1,10 +1,24 @@
|
|||||||
|
# NoiseDash - Audio sample management platform
|
||||||
FROM node:20
|
FROM node:20
|
||||||
|
|
||||||
LABEL maintainer="kaythomas@pm.me"
|
LABEL maintainer="kaythomas@pm.me"
|
||||||
|
|
||||||
|
# Set working directory
|
||||||
WORKDIR /var/noisedash
|
WORKDIR /var/noisedash
|
||||||
|
|
||||||
|
# Copy package files and install dependencies
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install --force
|
RUN npm install --force
|
||||||
|
|
||||||
|
# Copy application code (includes default config files)
|
||||||
COPY . .
|
COPY . .
|
||||||
ENV NODE_ENV production
|
|
||||||
|
# Set production environment and build frontend
|
||||||
|
ENV NODE_ENV=production
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
# Expose application port
|
||||||
EXPOSE 1432
|
EXPOSE 1432
|
||||||
|
|
||||||
|
# Start the server
|
||||||
CMD [ "node", "server/bin/www.js" ]
|
CMD [ "node", "server/bin/www.js" ]
|
||||||
|
|||||||
@@ -2,16 +2,13 @@ version: "3"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
noisedash:
|
noisedash:
|
||||||
image: noisedash/noisedash:latest
|
image: gitea.purpleraft.com/ryan/noisedash:latest
|
||||||
container_name: noisedash
|
|
||||||
ports:
|
ports:
|
||||||
- "1432:1432"
|
- "1432:1432"
|
||||||
volumes:
|
volumes:
|
||||||
- db:/var/noisedash/db
|
- ./db:/var/noisedash/db
|
||||||
- samples:/var/noisedash/samples
|
- ./samples:/var/noisedash/samples
|
||||||
- ./config/default.json:/var/noisedash/config/default.json
|
# Optional: Override default config if you have custom settings
|
||||||
|
# - ./config/default.json:/var/noisedash/config/default.json
|
||||||
|
|
||||||
volumes:
|
|
||||||
db:
|
|
||||||
samples:
|
|
||||||
|
|
||||||
|
|||||||
3588
package-lock.json
generated
3588
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -8,7 +8,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AppBar from '@/components/AppBar'
|
import AppBar from '@/components/AppBar.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'App',
|
name: 'App',
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
/* global workbox */
|
|
||||||
// Registers the service worker generated by @vue/cli-plugin-pwa
|
// Registers the service worker generated by @vue/cli-plugin-pwa
|
||||||
// This enables installability and offline caching for static assets.
|
// This enables installability and offline caching for static assets.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user