From 49584728b6423131712518e2f0803347c80069a1 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Tue, 6 Feb 2024 18:27:20 +0100 Subject: [PATCH] nix: Remove broken docker-based nix development environment It used to be possible to spin up a nix environment via docker container this way, but the upstream nixos/nix image has changed and the docker build doesn't succeed anymore. Since nobody complained about that, we can assume it is not being used anyway. --- nix/Dockerfile | 22 ---------------------- nix/docker-compose.yml | 12 ------------ 2 files changed, 34 deletions(-) delete mode 100644 nix/Dockerfile delete mode 100644 nix/docker-compose.yml diff --git a/nix/Dockerfile b/nix/Dockerfile deleted file mode 100644 index 99fefa87c6..0000000000 --- a/nix/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -# This Dockerfile is only used as a development environment for -# non-nix systems, i.e. Windows. - -FROM nixos/nix:latest - -RUN apk --no-cache add \ - wget - -RUN nix-env -iA cachix -f https://cachix.org/api/v1/install \ - && cachix use postgrest - -# We need an unprivileged user here, to make PG run at all. -RUN adduser --disabled-password --ingroup root nix \ - && chown -R nix:root /nix -USER nix:root -ENV USER=nix - -VOLUME /nix -VOLUME /postgrest -WORKDIR /postgrest - -CMD nix-shell diff --git a/nix/docker-compose.yml b/nix/docker-compose.yml deleted file mode 100644 index 857c881d6e..0000000000 --- a/nix/docker-compose.yml +++ /dev/null @@ -1,12 +0,0 @@ -version: '3' - -services: - nix: - container_name: postgrest-nix - build: . - volumes: - - ../:/postgrest - - nix:/nix - -volumes: - nix: