From 20f99ce03ed3922b340e8c6d8fe8ad3fdd11f2e3 Mon Sep 17 00:00:00 2001 From: KaySar12 Date: Fri, 28 Mar 2025 09:39:31 +0700 Subject: [PATCH] remove unwanted file --- Dockerfile | 34 ---------------------------------- Jenkinsfile | 32 -------------------------------- 2 files changed, 66 deletions(-) delete mode 100644 Dockerfile delete mode 100644 Jenkinsfile diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index fb9c43b4a..000000000 --- a/Dockerfile +++ /dev/null @@ -1,34 +0,0 @@ -FROM odoo:18.0 -# Overwrite odoo with addons -COPY ./odoo /usr/lib/python3/dist-packages/ -COPY ./addons /usr/lib/python3/dist-packages/odoo -COPY ./deployment/entrypoint.sh / -# Copy entrypoint script and Odoo configuration file -# COPY deployment/entrypoint.sh / -# COPY deployment/odoo.conf /etc/odoo/ -USER root -RUN apt-get update && apt-get install -y libreoffice -USER odoo -COPY ./deployment/requirements.txt /usr/lib/python3/dist-packages/odoo -RUN pip install -r /usr/lib/python3/dist-packages/odoo/requirements.txt --break-system-packages -# Set permissions and Mount /var/lib/odoo to allow restoring filestore and /mnt/extra-addons for users addons and /mnt/backup for backup -RUN chown odoo /etc/odoo/odoo.conf \ - && mkdir -p /mnt/extra-addons \ - && chown -R odoo /mnt/extra-addons \ - && mkdir -p /var/lib/odoo/backup \ - && chown -R odoo /var/lib/odoo/backup -VOLUME ["/var/lib/odoo", "/mnt/extra-addons","/var/lib/odoo/backup"] - -# Expose Odoo services -EXPOSE 8069 8071 8072 - -# Set the default config file -ENV ODOO_RC /etc/odoo/odoo.conf - -# COPY deployment/wait-for-psql.py /usr/local/bin/wait-for-psql.py - -# Set default user when running the container -USER odoo - -ENTRYPOINT ["/entrypoint.sh"] -CMD ["odoo"] \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 6708f10ea..000000000 --- a/Jenkinsfile +++ /dev/null @@ -1,32 +0,0 @@ -node('Node-Dev-100163') { - try { - stage('Checkout') { - echo 'Pulling...' + env.BRANCH_NAME - checkout scm - } - stage('Cleanup') { - sh "make update_tag CURR_BRANCH=${env.BRANCH_NAME}" - sh 'make clean_up' - } - stage('Build') { - // sh 'make install' - sh 'make stop_server_docker' - sh 'make gen_config_docker' - sh 'make build_image' - } - stage('Start'){ - sh 'make run_server_docker' - sh 'make restore_database_docker' - } - stage('Testing') { - sh 'make run_test_docker' - } - stage('Publish') { - sh 'make push_image' - } - currentBuild.result = "SUCCESS" // Set success status after all stages complete - } catch (err) { - currentBuild.result = "FAILURE" - throw err - } -} \ No newline at end of file