Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1320 from deNBI/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
eKatchko authored Dec 13, 2022
2 parents 2daae42 + 6e417b3 commit a9f1d98
Show file tree
Hide file tree
Showing 15 changed files with 69 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/blacked.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.1.0
- uses: actions/checkout@v3.2.0
- name: Checking out Branch
run: git checkout "${GITHUB_REF:11}"
- name: black
Expand All @@ -17,7 +17,7 @@ jobs:
- name: Create Pull Request
if: steps.git-check.outputs.modified == 'true'
id: cpr
uses: peter-evans/[email protected].0
uses: peter-evans/[email protected].3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: fix(Linting):blacked code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ jobs:
uses: rokroskar/[email protected]
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/checkout@v3.1.0
- uses: actions/checkout@v3.2.0
- run: docker build --no-cache .
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3.1.0
uses: actions/checkout@v3.2.0

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/master-protection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: rokroskar/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3.1.0
- uses: actions/checkout@v3.2.0

- name: Check Tag
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: rokroskar/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3.1.0
- uses: actions/checkout@v3.2.0
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- uses: actions/checkout@v3.1.0
- uses: actions/checkout@v3.2.0
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10.8-buster
FROM python:3.11.1-buster
RUN apt-get update -y
RUN apt-get install -y build-essential
WORKDIR /code
Expand Down
11 changes: 10 additions & 1 deletion VirtualMachineService/VirtualMachineHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1058,17 +1058,26 @@ def start_server_without_playbook(
volume_ids_path_new=volume_ids_path_new,
volume_ids_path_attach=volume_ids_path_attach,
)
unlock_ubuntu_user_script = "\npasswd -u ubuntu\n"
unlock_ubuntu_user_script = encodeutils.safe_encode(
unlock_ubuntu_user_script.encode("utf-8")
)
if additional_keys:
if init_script:
add_key_script = self.create_add_keys_script(keys=additional_keys)
init_script = (
add_key_script
+ encodeutils.safe_encode("\n".encode("utf-8"))
+ unlock_ubuntu_user_script
+ init_script
)

else:
init_script = self.create_add_keys_script(keys=additional_keys)
init_script = (
self.create_add_keys_script(keys=additional_keys)
+ encodeutils.safe_encode("\n".encode("utf-8"))
+ unlock_ubuntu_user_script
)

server = self.conn.create_server(
name=servername,
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.bibigrid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:

client_redis:
container_name: client_redis
image: redis:7.0.5
image: redis:7.0.6
expose:
- "6379"
networks:
Expand All @@ -40,7 +40,7 @@ services:

# filebeat
filebeat:
image: docker.elastic.co/beats/filebeat:8.5.1
image: docker.elastic.co/beats/filebeat:8.5.3
env_file:
- .env
volumes:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.dev.bibigrid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:

client_redis:
container_name: client_redis
image: redis:7.0.5
image: redis:7.0.6
expose:
- "6379"
networks:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:

client_redis:
container_name: client_redis
image: redis:7.0.5
image: redis:7.0.6
expose:
- "6379"
networks:
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:

client_redis:
container_name: client_redis
image: redis:7.0.5
image: redis:7.0.6
expose:
- "6379"
networks:
Expand All @@ -26,7 +26,7 @@ services:
# filebeat
filebeat:
container_name: client_filebeat
image: docker.elastic.co/beats/filebeat:8.5.1
image: docker.elastic.co/beats/filebeat:8.5.3
env_file:
- .env
volumes:
Expand Down
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
setuptools==65.5.1
setuptools==65.6.3
thrift==0.16.0
python-keystoneclient==5.0.1
openstacksdk ==0.102.0
openstacksdk ==0.103.0
deprecated == 1.2.13
ansible==6.6.0
ansible==7.1.0
Click==8.1.3
flake8==5.0.4
flake8==6.0.0
paramiko==2.12.0
ruamel.yaml==0.17.21
pyvim==3.0.3
redis==4.3.4
redis==4.4.0
requests==2.28.1
pyyaml==6.0
2 changes: 1 addition & 1 deletion requirements.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
roles:
- name: oefenweb.rstudio_server
version: v2.7.1
version: v3.0.2

- name: oefenweb.latest_r
version: v3.1.1
Expand Down
39 changes: 39 additions & 0 deletions thrift.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y \
wget \
build-essential \
automake \
libtool \
flex \
bison \
pkg-config \
libboost-all-dev \
libevent-dev \
libdouble-conversion-dev \
libgoogle-glog-dev \
libgflags-dev \
liblz4-dev \
liblzma-dev \
libsnappy-dev \
zlib1g-dev \
binutils-dev \
libjemalloc-dev \
libssl-dev

RUN wget http://archive.apache.org/dist/thrift/0.11.0/thrift-0.11.0.tar.gz && \
tar xzf thrift-0.11.0.tar.gz && \
rm thrift-0.11.0.tar.gz && \
cd thrift-0.11.0 && \
./configure --without-python && \
make && \
make install

COPY . /app

WORKDIR /app

# Set the default target language to Python
ENV TARGET_LANG python

CMD thrift -r --gen $TARGET_LANG /app/$THRIFT_FILE

0 comments on commit a9f1d98

Please sign in to comment.