Category : sqlite

I have Node.js app which is using Sequelize ORM for working with SQLite DB and umzug library for migrations. App is containerized with Docker. When I run my container like: docker run -v /home/user/data:/app/data image:tag everything is working fine, but when I want to use named volume: docker volume create appdata docker run -v appdata:/app/data ..

Read more

Here is my docker: FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-env RUN dotnet tool install -g dotnet-ef ENV PATH $PATH:/root/.dotnet/tools RUN dotnet ef –version WORKDIR /app COPY .sln ./ COPY samples/Server/.csproj ./samples/Server/ COPY tests/.csproj ./tests/ COPY src/suite/OpenIddict.UI.Suite.Api/.csproj ./src/suite/OpenIddict.UI.Suite.Api/ COPY src/suite/OpenIddict.UI.Suite.Core/.csproj ./src/suite/OpenIddict.UI.Suite.Core/ COPY src/openiddict/OpenIddict.UI.Api/.csproj ./src/openiddict/OpenIddict.UI.Api/ COPY src/openiddict/OpenIddict.UI.Infrastructure/.csproj ./src/openiddict/OpenIddict.UI.Infrastructure/ COPY src/identity/OpenIddict.UI.Identity.Api/.csproj ./src/identity/OpenIddict.UI.Identity.Api/ COPY src/identity/OpenIddict.UI.Identity.Core/.csproj ./src/identity/OpenIddict.UI.Identity.Core/ COPY src/identity/OpenIddict.UI.Identity.Infrastructure/.csproj ./src/identity/OpenIddict.UI.Identity.Infrastructure/ RUN dotnet ..

Read more

I have Node.js app that uses SQLite database. To use it on ARM architecture, I need to build sqlite3 binaries so I need some packages while building Docker image. Here is my Dockerfile: FROM node:14-alpine as builder WORKDIR /app COPY package*.json ./ RUN apk update && apk –no-cache –virtual build-dependencies add python make g++ && ..

Read more

I’m trying to deploy a small Django app, that creates its own db.sqlite3 database, in a Kubernetes pod. When doing so without a persistent volume to save the db.sqlite3, it works fine but when trying to save it in a persistent volume, the pod outputs django.db.utils.OperationalError: unable to open database file The first problem I ..

Read more