Br3nda / legislation

This is New Zealand Legislation -- It contains all acts, bills, and SOP that were still active at the time of generations.
57 stars 9 forks source link

Source code #1

Open nzbart opened 3 years ago

nzbart commented 3 years ago

Do you still have the source code for the software that you used to update this repo?

Br3nda commented 3 years ago

yes -- it is eleven years old tho, and not in mordern styles

https://github.com/Br3nda/legislation_pull

Br3nda commented 3 years ago

https://github.com/Br3nda/legislation_pull/blob/master/acts.inc.php

nzbart commented 3 years ago

I got something running in a Docker container, but I'm not sure of how the legislation repo links into the legislation_pull one vs. the similar looking www.legislation.govt.nz subdirectory vs. the repo directory that files are downloaded into. I note that the script appears to download version numbers, and it's busy committing code, but I'm not sure if it's still working as it used to.

Anyway, I'll leave this Dockerfile here in case I get a chance to look at it again in the future. I've been toying with the idea you started here for quite a while now.

# syntax = docker/dockerfile:1.0-experimental
FROM debian:10
WORKDIR /app
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y php php-xml git
RUN git config --global user.name "Example User" && git config --global user.email "test@example.com"
COPY . .
ENTRYPOINT [ "php", "./index.php" ]