-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into task/DES-2562--myworkingfiles-listing
- Loading branch information
Showing
13 changed files
with
69 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
FROM node:16 as node_build | ||
COPY package.json package-lock.json /designsafe/ | ||
WORKDIR /designsafe | ||
RUN npm ci | ||
|
||
COPY . /designsafe/ | ||
RUN npm run build | ||
|
||
|
||
FROM python:3.7-buster | ||
|
||
LABEL MAINTAINER="DesignSafe-CI <[email protected]>" | ||
|
@@ -27,10 +36,6 @@ RUN apt-get update && apt-get install -y \ | |
git \ | ||
vim | ||
|
||
# install node 16.x | ||
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - | ||
RUN apt-get install -y nodejs | ||
|
||
RUN pip install poetry | ||
COPY poetry.lock pyproject.toml /srv/www/ | ||
WORKDIR /srv/www | ||
|
@@ -41,14 +46,10 @@ RUN poetry config virtualenvs.create false && \ | |
RUN groupadd --gid 816877 G-816877 && \ | ||
useradd --uid 458981 --gid G-816877 -m --shell /bin/bash tg458981 -d /home/tg458981 | ||
|
||
COPY . /srv/www/designsafe | ||
RUN chown -R tg458981:G-816877 /srv/www/designsafe | ||
COPY --from=node_build /designsafe/ /srv/www/designsafe | ||
RUN chown tg458981:G-816877 /srv/www/designsafe /srv/www/designsafe/* | ||
RUN chown -R tg458981:G-816877 /srv/www/designsafe/designsafe | ||
|
||
USER tg458981 | ||
|
||
RUN echo "prefix=~/.npm-global" >> ~/.npmrc | ||
|
||
WORKDIR /srv/www/designsafe | ||
|
||
RUN npm ci | ||
RUN npm run build |
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,3 +1,6 @@ | ||
from django.contrib import admin | ||
from designsafe.apps.notifications.models import SiteMessage | ||
|
||
# Register your models here. | ||
|
||
admin.site.register(SiteMessage) |
23 changes: 23 additions & 0 deletions
23
designsafe/apps/notifications/migrations/0003_sitemessage.py
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,23 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.29 on 2023-08-04 15:55 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('notifications', '0002_auto_20160301_2331'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='SiteMessage', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('message', models.TextField(help_text='Text for the alert message')), | ||
('display', models.BooleanField()), | ||
], | ||
), | ||
] |
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
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
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