aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| * | CI: fix base image build conditionGravatar MarkKoz2020-02-21-1/+11
| | | | | | | | | | | | | | | Build if the base changed or the venv changed and the base cannot be pulled.
| * | CI: define default values for variablesGravatar MarkKoz2020-02-21-2/+7
| | |
| * | CI: don't use output variablesGravatar MarkKoz2020-02-21-6/+5
| | | | | | | | | | | | | | | | | | It was initially used to enable access to variables across jobs, but the jobs will eventually be consolidated into one so output variables will no longer be needed.
| * | CI: compare variables against stringsGravatar MarkKoz2020-02-21-17/+17
| | | | | | | | | | | | Avoids type casting ambiguity and weirdness.
| * | CI: install dev dependencies inside running containerGravatar MarkKoz2020-02-21-9/+15
| | | | | | | | | | | | | | | This change allows for the venv image to be pushed since it won't be built with dev dependencies.
| * | CI: diff base against master only if venv changedGravatar MarkKoz2020-02-21-16/+14
| | |
| * | CI: move lint & tests job into templatesGravatar MarkKoz2020-02-21-93/+97
| | | | | | | | | | | | Splitting steps into several files makes the YAML more maintainable.
| * | CI: update agent to Ubuntu 18.04Gravatar MarkKoz2020-02-21-3/+2
| | | | | | | | | | | | * Use inherit_errexit in check_dockerfiles.sh
| * | CI: add more logging in check_dockerfiles.shGravatar MarkKoz2020-02-21-0/+9
| | |
| * | CI: always check if the base image can be pulled from Docker HubGravatar MarkKoz2020-02-21-2/+6
|/ /
* | Merge pull request #62 from ↵Gravatar Mark2020-02-21-141/+186
|\ \ | | | | | | | | | | | | python-discord/bug/ci/61/python-symlink-not-resolving Install Pipfile into system interpreter
| * | CI: install Pipfile into system interpreterGravatar MarkKoz2020-02-21-141/+186
|/ / | | | | | | | | | | | | | | | | | | | | A virtual environment is redundant in the context of deployment. It just increases the size and build time of the image. * Replace venv with system interpreter * Mount Python binaries in /usr/local/bin in NsJail * Fix #61: Python symlink in venv not resolving * Re-lock Pipfile because it wasn't up to date according to pipenv install --deploy
| * Use port mapping, change container name to snekboxGravatar scragly2020-02-22-3/+4
|/
* Merge pull request #55 from python-discord/proper-chrootGravatar Mark2020-02-05-49/+172
|\ | | | | Configure a proper chroot jail for NsJail
| * Merge branch 'master' into proper-chrootGravatar Mark2020-02-05-0/+1
| |\ | |/ |/|
* | Update CODEOWNERSGravatar Joseph2020-02-02-1/+1
| |
* | Create CODEOWNERSGravatar Joseph2020-02-02-0/+1
| |
| * Update time limit in docstringGravatar Mark2020-02-05-1/+1
| | | | | | Co-Authored-By: Sebastiaan Zeeff <[email protected]>
| * Increase time limit from 2 to 5 secondsGravatar Joseph Banks2020-01-24-2/+2
| |
| * Fix #56: stdout and stderr outputs in wrong orderGravatar MarkKoz2020-01-11-3/+19
| |
| * Add test for importing numpyGravatar MarkKoz2019-12-28-0/+6
| | | | | | | | | | This is a test for #53, which fixed numpy failing to import due to using multiple threads by default.
| * Test root and direct children are read-onlyGravatar MarkKoz2019-12-28-7/+10
| |
| * Test shared memory is disabledGravatar MarkKoz2019-12-28-0/+27
| | | | | | | | Co-authored-by: 0xf0f <[email protected]>
| * Mount /usr/lib so ctypes can use libffiGravatar MarkKoz2019-12-28-0/+7
| |
| * Mount only what's needed in the chroot jailGravatar MarkKoz2019-12-28-37/+99
| | | | | | | | | | | | | | | | | | | | | | | | devfs and sysfs were problematic since they were being mounted as tmpfs, which is r/w. For example, the Python process could write to cgroups. Now, only what is needed to run Python gets mounted. This boils down to the venv itself and some shared libraries Python needs. * Use a config file for NsJail instead of command-line options * Map 65534 (nobody) user & group inside the user namespace to 65534 outside the namespace rather than mapping to current uid/guid (which was 0 AKA root)
| * Disable shared memory in Docker containerGravatar MarkKoz2019-12-28-0/+2
|/
* Merge pull request #53 from python-discord/limit-numpy-threadsGravatar Mark2019-12-16-0/+10
|\ | | | | Limit numpy to using 1 thread
| * Limit numpy to using 1 threadGravatar MarkKoz2019-12-16-0/+10
|/
* Merge pull request #52 from python-discord/ci-testGravatar Mark2019-12-16-0/+3
|\ | | | | CI: fix incorrect CWD for check script
| * CI: fix incorrect CWD for check scriptGravatar MarkKoz2019-12-16-0/+3
|/
* Merge pull request #51 from python-discord/3-external-libsGravatar Mark2019-12-16-36/+325
|\ | | | | Add external libraries and update image
| * Pin external dependenciesGravatar Matteo Bertucci2019-12-16-16/+16
| |
| * Install beautifulsoup4 pyyaml and tomlGravatar Matteo Bertucci2019-12-16-1/+47
| |
| * Install more-itertools and networkxGravatar Matteo Bertucci2019-12-16-4/+29
| |
| * Delete toml and yamlGravatar Matteo Bertucci2019-12-15-30/+1
| |
| * Use bash instead of ashGravatar MarkKoz2019-12-14-13/+13
| | | | | | | | Forgot to do this after switching to Debian.
| * Update the Python version in READMEGravatar MarkKoz2019-12-14-2/+2
| |
| * Add gcc to base containerGravatar MarkKoz2019-12-14-0/+1
| | | | | | | | | | A C compiler is needed for some of the Python libraries to build because they don't have wheels >:(
| * Switch Docker base image to Debian BusterGravatar MarkKoz2019-12-14-17/+19
| | | | | | | | | | Unlike Alpine, Python manylinux wheels work on Debian because it's a glibc-based distro.
| * Add external librariesGravatar Matteo Bertucci2019-12-14-1/+245
|/ | | | | | Add the libraries specified in #3 : numpy scipy pandas sympy fuzzywuzzy python-dateutil pendulum arrow yarl PyYAML toml attrs forbiddenfruit
* Merge pull request #50 from python-discord/python-3.8Gravatar Mark2019-12-08-91/+71
|\ | | | | Update to Python 3.8
| * Update flake8-annotations for Python 3.8 supportGravatar MarkKoz2019-12-08-48/+21
| | | | | | | | | | The update makes typed-ast optional for 3.8 which fixes the container builds that would otherwise require gcc and Python headers.
| * Update NsJail to 2.9Gravatar MarkKoz2019-12-01-3/+5
| |
| * Update to Python 3.8Gravatar MarkKoz2019-12-01-68/+73
| | | | | | | | | | | | | | | | | | Currently, the dev image is broken due to typed-ast being present and requiring GCC and Python.h. Supposedly that package will be made optional by flake8-annotations in a later update. * Use the Python image for the base image's first stage to save downloading a separate alpine image.
| * Fix if statement for syncing dev dependencies in venv imageGravatar MarkKoz2019-12-01-1/+1
|/
* Merge pull request #49 from makusu2/fixsyncGravatar Mark2019-10-05-1/+1
|\ | | | | Use pipenv sync instead of pipenv --sync
| * Use pipenv sync instead of pipenv --syncGravatar Maku2019-10-05-1/+1
|/
* Merge pull request #45 from python-discord/add-flake8-annotationsGravatar Mark2019-09-23-10/+25
|\ | | | | Add flake8-annotations & relint
| * Fix multiline function definitionGravatar sco12019-09-23-1/+2
| | | | | | | | Co-Authored-By: Mark <[email protected]>
| * Add flake8-annotations & relintGravatar sco12019-09-23-10/+24
|/