-
Notifications
You must be signed in to change notification settings - Fork 11
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 #1974 from FJNR-inc/develop
New release
- Loading branch information
Showing
14 changed files
with
567 additions
and
72 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 |
---|---|---|
|
@@ -2,31 +2,16 @@ FROM lambci/lambda:build-python3.8 | |
|
||
LABEL maintainer="[email protected]" | ||
|
||
# Fancy prompt to remind you are in zappashell | ||
RUN echo 'export PS1="\[\e[36m\]blitz_shell>\[\e[m\] "' >> /root/.bashrc | ||
|
||
COPY requirements.txt /requirements.txt | ||
COPY requirements-dev.txt /requirements-dev.txt | ||
|
||
# Virtualenv created for zappa | ||
RUN virtualenv ~/ve | ||
RUN source ~/ve/bin/activate \ | ||
&& pip install -r /requirements.txt \ | ||
&& pip install -r /requirements-dev.txt | ||
|
||
RUN pip --timeout=1000 install -r /requirements.txt \ | ||
&& pip --timeout=1000 install -r /requirements-dev.txt | ||
RUN pip --timeout=1000 --no-cache-dir install -r /requirements.txt | ||
RUN pip --timeout=1000 --no-cache-dir install -r /requirements-dev.txt | ||
|
||
RUN mkdir -p /opt/project | ||
|
||
COPY ./docker/entrypoint /entrypoint | ||
RUN sed -i 's/\r$//g' /entrypoint | ||
RUN chmod +x /entrypoint | ||
|
||
COPY ./docker/start /start | ||
RUN sed -i 's/\r$//g' /start | ||
RUN chmod +x /start | ||
|
||
WORKDIR /opt/project | ||
|
||
ENTRYPOINT ["/entrypoint"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Generated by Django 3.2.8 on 2023-06-27 13:26 | ||
|
||
from django.db import migrations, models | ||
import uuid | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('blitz_api', '0029_auto_20230203_1624'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='MagicLink', | ||
fields=[ | ||
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), | ||
('full_link', models.TextField(verbose_name='Full link')), | ||
('type', models.CharField(choices=[('DOWNLOAD', 'Download')], default='DOWNLOAD', max_length=255)), | ||
('description', models.TextField(blank=True, null=True, verbose_name='Description')), | ||
('nb_uses', models.PositiveIntegerField(default=0, verbose_name='Number of uses')), | ||
('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Created at')), | ||
('updated_at', models.DateTimeField(auto_now=True, verbose_name='Updated at')), | ||
], | ||
), | ||
migrations.AlterField( | ||
model_name='exportmedia', | ||
name='type', | ||
field=models.CharField(choices=[('ANONYMOUS CHRONO DATA', 'Anonymous Chrono data'), ('OTHER', 'Other'), ('RETREAT SALES', 'Retreat sales'), ('RETREAT PARTICIPATION', 'Retreat participation'), ('RETREAT OPTIONS', 'Retreat options'), ('COUPON USAGE', 'Coupon usage')], default='OTHER', max_length=255), | ||
), | ||
] |
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
Oops, something went wrong.