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",
|
||||
"image": "mcr.microsoft.com/devcontainers/node:20-bookworm",
|
||||
"image": "node:18",
|
||||
"forwardPorts": [8080, 1432],
|
||||
"portsAttributes": {
|
||||
"8080": { "label": "Vue dev server" },
|
||||
|
||||
@@ -25,22 +25,23 @@ jobs:
|
||||
- name: Log in to Gitea Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY_HOST }}
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
registry: gitea.purpleraft.com
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: Extract metadata (tags, labels)
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ${{ env.REGISTRY_HOST }}/${{ env.REGISTRY_OWNER }}/${{ env.REGISTRY_REPO }}
|
||||
images: gitea.purpleraft.com/${{ gitea.repository_owner }}/noisedash
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
type=ref,event=tag
|
||||
type=sha
|
||||
type=raw,value=latest,enable={{is_default_branch}}
|
||||
|
||||
- name: Build (PR only)
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
if: ${{ gitea.event_name == 'pull_request' }}
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
@@ -50,20 +51,12 @@ jobs:
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
- name: Build and push (branches/tags)
|
||||
if: ${{ github.event_name != 'pull_request' }}
|
||||
if: ${{ gitea.event_name != 'pull_request' }}
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm64
|
||||
platforms: linux/amd64
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
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
|
||||
|
||||
LABEL maintainer="kaythomas@pm.me"
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /var/noisedash
|
||||
|
||||
# Copy package files and install dependencies
|
||||
COPY package*.json ./
|
||||
RUN npm install --force
|
||||
|
||||
# Copy application code (includes default config files)
|
||||
COPY . .
|
||||
ENV NODE_ENV production
|
||||
|
||||
# Set production environment and build frontend
|
||||
ENV NODE_ENV=production
|
||||
RUN npm run build
|
||||
|
||||
# Expose application port
|
||||
EXPOSE 1432
|
||||
|
||||
# Start the server
|
||||
CMD [ "node", "server/bin/www.js" ]
|
||||
|
||||
@@ -2,16 +2,13 @@ version: "3"
|
||||
|
||||
services:
|
||||
noisedash:
|
||||
image: noisedash/noisedash:latest
|
||||
container_name: noisedash
|
||||
image: gitea.purpleraft.com/ryan/noisedash:latest
|
||||
ports:
|
||||
- "1432:1432"
|
||||
volumes:
|
||||
- db:/var/noisedash/db
|
||||
- samples:/var/noisedash/samples
|
||||
- ./config/default.json:/var/noisedash/config/default.json
|
||||
- ./db:/var/noisedash/db
|
||||
- ./samples:/var/noisedash/samples
|
||||
# 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>
|
||||
|
||||
<script>
|
||||
import AppBar from '@/components/AppBar'
|
||||
import AppBar from '@/components/AppBar.vue'
|
||||
|
||||
export default {
|
||||
name: 'App',
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* global workbox */
|
||||
// Registers the service worker generated by @vue/cli-plugin-pwa
|
||||
// This enables installability and offline caching for static assets.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user