Skip to content

froster mount and froster umount commands done #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 63 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
66ef6f0
install.sh: Delete previous rclone and pwalk installation folder
victormachadoperez May 2, 2024
7270b71
Add dockerfile to create ubuntu image with all froster dependencies
victormachadoperez May 2, 2024
ce7b7d7
Basic dockerfile for testing
victormachadoperez May 3, 2024
bd3f10e
Dummy test_froster.py that generates test data
victormachadoperez May 3, 2024
cbf8862
Renamed test folder to tests
victormachadoperez May 3, 2024
6220fdd
Create python-publish.yml
victormachadoperez May 3, 2024
21390a5
change test_froster.py to generate_dummy_files.py
victormachadoperez May 3, 2024
0c67899
dummy dockerfile for testing purposes
victormachadoperez May 3, 2024
611d8c2
Updated version of froster to 0.10.1
victormachadoperez May 3, 2024
94c5a31
Merge branch 'main' into develop
victormachadoperez May 3, 2024
69478fc
Update froster-ubuntu-install.yml
victormachadoperez May 3, 2024
83f7570
Merge branch 'main' into develop
victormachadoperez May 3, 2024
d3a983f
make REPO and BRANCH variables in install.sh
victormachadoperez May 3, 2024
f08c269
github actions triggered when commit pushed
victormachadoperez May 3, 2024
93234a2
Updating github workflow
victormachadoperez May 3, 2024
bb3dd65
Update workflow
victormachadoperez May 3, 2024
6d5f2e2
upd workflow
victormachadoperez May 3, 2024
60b1c5f
upd workflow
victormachadoperez May 3, 2024
f9a01fd
upd
victormachadoperez May 3, 2024
6b6dbba
Update installation methond for github actions
May 6, 2024
ea462b3
Bugfix: deleting extra $ sign
May 6, 2024
f0e3770
Remove unnecessary >/dev/null 2>&1 in installation script
May 6, 2024
d8abb1c
check install folders and path in ga
May 6, 2024
1a5a1cc
upd wfl
May 6, 2024
8b8e98b
upd workflow
May 6, 2024
3d7af13
updated workflow
May 6, 2024
f83f2f9
fix wkfl
May 6, 2024
2e31214
asdf
May 6, 2024
7869af3
asdf
May 6, 2024
838293a
asdf
May 6, 2024
32e033e
asdf
May 6, 2024
d2b7314
asdf
May 6, 2024
4c6e60c
asdf
May 6, 2024
678f1dc
asdf
May 6, 2024
29409c2
Removing unneded echo's
May 6, 2024
a4771b3
avoid printing return line
May 6, 2024
2e11be0
Clean code ga workflow
May 6, 2024
05b92fd
OHSU-51 run generate_dummy_files in github actions
May 6, 2024
eab52b8
OHSU-51 fix generate dummy files path
May 6, 2024
e9200f0
Fix path for testing
May 6, 2024
ec80014
OHSU-51 delete installation unneded echo
May 6, 2024
c4b6cd4
Trying to check where everything is installed
May 6, 2024
9efd89e
OHSU-51 checkout the correct branch in GA
May 6, 2024
3f35239
Fix dummy test path
May 6, 2024
3ff3a25
Fix path of tests
May 6, 2024
3604c55
Fix test dummy path
May 6, 2024
522c432
OHSU-121 mount
May 7, 2024
38dc662
OHSU-121 umount feature
May 7, 2024
2fe3fa6
OHSU-121 add froster (u)mount --list flag
May 7, 2024
6f7c682
clean_path_list only in archiver functions
May 8, 2024
d786679
OHSU-120 froster restore WIP
May 8, 2024
3678c80
Fix froster config and credentials check
May 9, 2024
81b5791
Printing message when installing froster
May 9, 2024
04d521d
Testing install script
May 9, 2024
86d1953
Updating repo path in install script
May 9, 2024
87db13b
Fix _check_session and add try except in AWS BOTO functions
May 9, 2024
1cab657
Fixing froster configuration
May 9, 2024
34cfbd9
Check bucket_name before accessing it
May 9, 2024
0378483
Fix set_s3 config
May 9, 2024
1852ff2
Uninstall existing froster prior to update
May 9, 2024
9ac7fcf
Update versin and fix minor bugs
May 9, 2024
a40709f
Adding quotes in echo command
May 9, 2024
75c004c
Set orignal repo and branch in install.sh
May 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/froster-test-generate-dummy-files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: froster-test-generate-dummy-files
run-name: Generate dummy files for testing
on: [push, pull_request]
jobs:
check-froster-installation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- run: ./install.sh
- run: froster --version
- run: python3 tests/generate_dummy_files.py
20 changes: 8 additions & 12 deletions .github/workflows/froster-ubuntu-install.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
name: froster-ubuntu-install
run-name: Froster installs correctly in Ubuntu-latest
on: [push]
run-name: Check that froster installs correctly in Ubuntu-latest
on: [push, pull_request]
jobs:
check-froster-installation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: which curl
- run: which python3
- run: which pipx
- run: which gcc
- run: which unzip
- run: pipx environment
- run: ./install.sh
- run: froster --version
steps:
- name: Install Froster
run: curl -s https://raw.githubusercontent.com/${{ github.repository }}/${{ github.ref }}/install.sh | bash

- name: Check Froster is installed
run: froster --version


45 changes: 45 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
tags:
description: 'Test scenario tags'

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
21 changes: 21 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Use an official Ubuntu runtime as a parent image
FROM ubuntu:latest

# Update the system
RUN apt-get update -y

# Install dependencies
RUN apt-get install -y vim curl pip pipx git gcc lib32gcc-s1 unzip

RUN cd /home
RUN python3 -m venv /home/.venv
RUN . /home/.venv/bin/activate

# # Install python packages needed for build and deploy
RUN /home/.venv/bin/pip install twine setuptools wheel

# ensure path
ENV PATH="/root/.local/bin:${PATH}"

# Set the working directory in the container to /app
WORKDIR /home/ubuntu
Loading
Loading