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
version: '3.3' | |
services: | |
db: | |
restart: always | |
image: mysql/mysql-server:5.7.28 | |
container_name: mlflow_db | |
expose: | |
- "3306" | |
networks: |
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
# Define the user that will own and run the Nginx server | |
user nginx; | |
# Define the number of worker processes; recommended value is the number of | |
# cores that are being used by your server | |
worker_processes 1; | |
# Define the location on the file system of the error log, plus the minimum | |
# severity to log messages for | |
error_log /var/log/nginx/error.log warn; | |
# Define the file that will store the process ID of the main NGINX process |
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
# Define the parameters for a specific virtual host/server | |
server { | |
# Define the server name, IP address, and/or port of the server | |
listen 80; | |
# Define the specified charset to the “Content-Type” response header field | |
charset utf-8; | |
# Configure NGINX to reverse proxy HTTP requests to the upstream server (uWSGI server) | |
location / { |
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
FROM python:3.7-slim-buster | |
# Install python packages | |
RUN pip install mlflow boto3 pymysql |
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
FROM nginx:1.17.6 | |
# Remove default Nginx config | |
RUN rm /etc/nginx/nginx.conf | |
# Copy the modified Nginx conf | |
COPY nginx.conf /etc/nginx | |
# Copy proxy config | |
COPY mlflow.conf /etc/nginx/sites-enabled/ |
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
def squares(x): | |
# Perform calculus | |
y = x**2 | |
return y | |
if __name__ == "__main__": | |
print(f"The square of 10 is: {squares(10)}") |
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
""" | |
Unit testing of the automatic batch processing application | |
""" | |
import unittest | |
from src.app import squares | |
class AppTests(unittest.TestCase): | |
def test_app(self): | |
"""Simple Tests""" |
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
image: python:3.6-slim | |
before_script: | |
- python -V # Print out python version for debugging | |
stages: | |
- test | |
test_job: | |
stage: test |
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
version: 0.2 | |
phases: | |
install: | |
runtime-versions: | |
python: 3.8 | |
pre_build: | |
commands: | |
- apt-get install -y python3-venv | |
- python3.6 -m venv test_venv |
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
{ | |
"name": "Dummy Project Tests", | |
"description": "Script for CodeBuild creation", | |
"source": { | |
"type": "BITBUCKET", | |
"location": "https://bitbucket.org/myself/dummy_project.git", | |
"gitCloneDepth": 1, | |
"auth": { | |
"type": "OAUTH", | |
"resource": "arn:aws:codebuild:ca-central-1:123456789:token/bitbucket" |
OlderNewer