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 #1319 from deNBI/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
eKatchko authored Dec 13, 2022
2 parents 54fee0c + 2ef73a8 commit c53cb59
Show file tree
Hide file tree
Showing 14 changed files with 61 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .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 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
2 changes: 1 addition & 1 deletion 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 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
2 changes: 1 addition & 1 deletion 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 Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ openstacksdk ==0.103.0
deprecated == 1.2.13
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
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 c53cb59

Please sign in to comment.