Add yarn support

Signed-off-by: Felix Kaechele <felix@kaechele.ca>
This commit is contained in:
Felix Kaechele 2018-06-10 15:04:39 +02:00
parent 17fb6b0ddd
commit 396075efda
5 changed files with 1124 additions and 1 deletions

2
.gitignore vendored
View File

@ -34,3 +34,5 @@ tmp/*
.ropeproject
.sonarlint/*
pdns.db
node_modules

1
.yarnrc Normal file
View File

@ -0,0 +1 @@
--*.modules-folder "./app/static/node_modules"

View File

@ -6,7 +6,14 @@ ENV ENVIRONMENT=${ENVIRONMENT}
WORKDIR /powerdns-admin
RUN apt-get update -y
RUN apt-get install -y python3-pip python3-dev supervisor
RUN apt-get install -y python3-pip python3-dev supervisor curl
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
# Install yarn
RUN apt-get update -y
RUN apt-get install -y yarn
# lib for building mysql db driver
RUN apt-get install -y libmysqlclient-dev
@ -19,6 +26,7 @@ RUN apt-get install -y libxml2-dev libxslt1-dev libxmlsec1-dev libffi-dev pkg-co
COPY ./requirements.txt /powerdns-admin/requirements.txt
RUN pip3 install -r requirements.txt
RUN yarn
ADD ./supervisord.conf /etc/supervisord.conf
ADD . /powerdns-admin/

9
package.json Normal file
View File

@ -0,0 +1,9 @@
{
"dependencies": {
"admin-lte": "2.4.3",
"icheck": "^1.0.2",
"jquery-slimscroll": "^1.3.8",
"jquery-ui-dist": "^1.12.1",
"multiselect": "^0.9.12"
}
}

1103
yarn.lock Normal file

File diff suppressed because it is too large Load Diff