Skip to content

Commit b366562

Browse files
committed
Port to python 3 and django 4.0.6
PLEASE NOTE: This project is not maintained anymore. It was ported to a Qt 6 cmake setup and a more modern Django and Python version to at least keep it usable for legacy projects. For non-production use-cases, please switch to the new appman-package-server available in the Qt Application Manager starting with version 6.7. Task-number: AUTOSUITE-1368 Change-Id: Idc4f2490a2a4399c03fce761250f4b5ac2612a45 Reviewed-by: Dominik Holland <[email protected]>
1 parent 7259d1a commit b366562

29 files changed

+319
-450
lines changed

.cmake.conf

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
set(QT_REPO_MODULE_VERSION "6.7.0")

.gitignore

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
11
*~
22
*.pyc
3-
db.sqlite3
4-
media/
5-
static/
6-
certificates/
7-
.idea/*
8-
venv/*
9-
static/*
3+
data/*

CMakeLists.txt

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Copyright (C) 2023 The Qt Company Ltd.
2+
# SPDX-License-Identifier: BSD-3-Clause
3+
4+
cmake_minimum_required(VERSION 3.16)
5+
6+
include(.cmake.conf)
7+
project(QtAutoDeploymentServer
8+
VERSION "${QT_REPO_MODULE_VERSION}"
9+
DESCRIPTION "QtAuto deployment server"
10+
HOMEPAGE_URL "https://qt.io/"
11+
LANGUAGES CXX C
12+
)
13+
14+
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core Network)
15+
16+
add_custom_target(create_docker
17+
COMMAND docker build -t qtauto-deployment-server .
18+
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
19+
VERBATIM
20+
)
21+
22+
qt_build_repo()
23+
24+
25+
if(QT_BUILD_ONLINE_DOCS)
26+
set(DOC_CONF "doc/online/qtautodeploymentserver.qdocconf")
27+
else()
28+
set(DOC_CONF "doc/qtautodeploymentserver.qdocconf")
29+
endif()
30+
31+
file(GLOB_RECURSE allDocFiles "doc/*.qdoc" "doc/*.png" "doc/*.qdocconf")
32+
add_custom_target(Documentation SOURCES ${allDocFiles})
33+
qt_internal_add_docs(Documentation ${DOC_CONF})
34+
35+
# Add tool dependencies that were deferred by qt_internal_add_docs.
36+
qt_internal_add_deferred_dependencies()

Dockerfile

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
2+
FROM debian:bullseye-slim
3+
MAINTAINER Robert Griebl <[email protected]>
4+
5+
ENV LC_ALL="C.UTF-8"
6+
7+
RUN apt-get update && apt-get install -y --no-install-recommends \
8+
python3-pip \
9+
python3-magic \
10+
python3-m2crypto
11+
12+
RUN rm -rf /var/lib/apt/lists/*
13+
14+
COPY requirements.txt /
15+
RUN pip3 install -r requirements.txt
16+
17+
RUN mkdir /server
18+
COPY manage.py /server
19+
RUN chmod 755 ./server/manage.py
20+
COPY appstore/ /server/appstore
21+
COPY store/ /server/store
22+
23+
RUN mkdir /data
24+
VOLUME /data
25+
26+
ENV APPSTORE_DATA_PATH=/data
27+
ENV APPSTORE_STORE_SIGN_PKCS12_CERTIFICATE /data/certificates/store.p12
28+
ENV APPSTORE_DEV_VERIFY_CA_CERTIFICATES /data/certificates/ca.crt,/data/certificates/devca.crt
29+
30+
# You can also set these environment variables:
31+
## ENV APPSTORE_PLATFORM_ID NEPTUNE3
32+
## ENV APPSTORE_PLATFORM_VERSION 2
33+
## ENV APPSTORE_DOWNLOAD_EXPIRY 10
34+
## ENV APPSTORE_BIND_TO_DEVICE_ID 1
35+
## ENV APPSTORE_NO_SECURITY 1
36+
## ENV APPSTORE_STORE_SIGN_PKCS12_CERTIFICATE certificates/store.p12
37+
## ENV APPSTORE_STORE_SIGN_PKCS12_PASSWORD password
38+
## ENV APPSTORE_DEV_VERIFY_CA_CERTIFICATES certificates/ca.crt,certificates/devca.crt
39+
40+
41+
COPY docker-entrypoint.sh /
42+
ENTRYPOINT [ "/docker-entrypoint.sh" ]
43+
CMD [ "runserver", "0.0.0.0:8080" ]
44+
45+
EXPOSE 8080

README.md

-259
This file was deleted.

0 commit comments

Comments
 (0)