-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #208 from openpreserve/refact/remove-sigs
FEAT: Automatic Signature Updates:
- Loading branch information
Showing
8 changed files
with
255 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM python:3.6-alpine as builder | ||
|
||
LABEL maintainer="carl.wilson@openpreservation.org" \ | ||
org.openpreservation.vendor="Open Preservation Foundation" \ | ||
version="0.1" | ||
|
||
RUN apk update && apk --no-cache --update-cache add gcc build-base libxml2-dev libxslt-dev git | ||
|
||
WORKDIR /src | ||
|
||
COPY setup.py setup.py | ||
COPY requirements.txt requirements.txt | ||
COPY README.md README.md | ||
COPY fido/* fido/ | ||
|
||
RUN mkdir /install && pip install -U pip && pip install -r requirements.txt --prefix=/install && pip install --prefix=/install . | ||
|
||
FROM python:3.6-alpine | ||
|
||
RUN apk update && apk add --no-cache --update-cache libc6-compat libstdc++ bash libxslt | ||
RUN install -d -o root -g root -m 755 /opt && adduser --uid 1000 -h /opt/fido_sigs -S eark && pip install -U pip python-dateutil | ||
|
||
WORKDIR /opt/fido_sigs | ||
|
||
COPY --from=builder /install /usr/local | ||
COPY . /opt/fido_sigs/ | ||
RUN chown -R eark:users /opt/fido_sigs | ||
|
||
USER eark | ||
|
||
EXPOSE 5000 | ||
ENV FLASK_APP='fido.signatures' | ||
ENTRYPOINT flask run --host "0.0.0.0" --port "5000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<versions> | ||
<pronomVersion>96</pronomVersion> | ||
<pronomSignature>formats-v96.xml</pronomSignature> | ||
<pronomVersion>104</pronomVersion> | ||
<pronomSignature>pronom-xml-104.zip</pronomSignature> | ||
<pronomContainerSignature>container-signature-20200121.xml</pronomContainerSignature> | ||
<fidoExtensionSignature>format_extensions.xml</fidoExtensionSignature> | ||
<updateScript>1.4.1</updateScript> | ||
<updateScript>1.6.0rc1</updateScript> | ||
<updateSite>https://fidosigs.openpreservation.org</updateSite> | ||
</versions> |
Oops, something went wrong.