Skip to content

Commit

Permalink
add experimental ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
laszewsk committed Dec 16, 2023
1 parent b5118c4 commit d70bf4d
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/cloudmesh-on-ubuntu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Python Package using Containers

on:
push:
branches:
- main

jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Build and run container
run: |
docker build -t my_container .
docker run my_container
build-windows:
runs-on: windows-latest
strategy:
max-parallel: 5

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Build and run container
run: |
docker build -t my_container .
docker run my_container
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Use Ubuntu 22.04 as the base image
FROM ubuntu:22.04

# Set the working directory to /app
WORKDIR /app

# Install system dependencies
RUN apt-get update && \
apt-get install -y python3.12 python3.12-venv && \
rm -rf /var/lib/apt/lists/*

# Copy the current directory contents into the container at /app
COPY . /app

# Install additional dependencies
RUN python3.12 -m venv ENV3 && \
. ENV3/bin/activate && \
pip install -r requirements.txt

# Specify the default command to run on container start
CMD ["pytest", "tests", "-rsx"]

0 comments on commit d70bf4d

Please sign in to comment.