ui - Dockerfile fixes and missing get_config function
This commit is contained in:
parent
2db967ad1d
commit
82e47f147d
@ -36,6 +36,13 @@ class Config :
|
|||||||
if stderr != "" or proc.returncode != 0 :
|
if stderr != "" or proc.returncode != 0 :
|
||||||
raise Exception("Error from generator (return code = " + str(proc.returncode) + ") : " + stderr)
|
raise Exception("Error from generator (return code = " + str(proc.returncode) + ") : " + stderr)
|
||||||
|
|
||||||
|
def get_config(self) :
|
||||||
|
config = self.__env_to_dict("/etc/nginx/global.env")
|
||||||
|
for service in self.get_services() :
|
||||||
|
for k, v in service.items() :
|
||||||
|
config[service["FIRST_SERVER"] + "_" + k] = v
|
||||||
|
return config
|
||||||
|
|
||||||
def get_settings(self) :
|
def get_settings(self) :
|
||||||
return self.__settings
|
return self.__settings
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@ COPY ui/ /opt/entrypoint
|
|||||||
COPY settings.json /opt
|
COPY settings.json /opt
|
||||||
|
|
||||||
COPY ui/prepare.sh /tmp
|
COPY ui/prepare.sh /tmp
|
||||||
RUN chmod +x /tmp/prepare && \
|
RUN chmod +x /tmp/prepare.sh && \
|
||||||
/tmp/prepare.sh && \
|
/tmp/prepare.sh && \
|
||||||
rm -f /tmp/prepare.sh
|
rm -f /tmp/prepare.sh
|
||||||
|
|
||||||
|
|||||||
@ -21,7 +21,7 @@ COPY ui/ /opt/entrypoint
|
|||||||
COPY settings.json /opt
|
COPY settings.json /opt
|
||||||
|
|
||||||
COPY ui/prepare.sh /tmp
|
COPY ui/prepare.sh /tmp
|
||||||
RUN chmod +x /tmp/prepare && \
|
RUN chmod +x /tmp/prepare.sh && \
|
||||||
/tmp/prepare.sh && \
|
/tmp/prepare.sh && \
|
||||||
rm -f /tmp/prepare.sh
|
rm -f /tmp/prepare.sh
|
||||||
|
|
||||||
|
|||||||
@ -21,7 +21,7 @@ COPY ui/ /opt/entrypoint
|
|||||||
COPY settings.json /opt
|
COPY settings.json /opt
|
||||||
|
|
||||||
COPY ui/prepare.sh /tmp
|
COPY ui/prepare.sh /tmp
|
||||||
RUN chmod +x /tmp/prepare && \
|
RUN chmod +x /tmp/prepare.sh && \
|
||||||
/tmp/prepare.sh && \
|
/tmp/prepare.sh && \
|
||||||
rm -f /tmp/prepare.sh
|
rm -f /tmp/prepare.sh
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@ COPY ui/ /opt/entrypoint
|
|||||||
COPY settings.json /opt
|
COPY settings.json /opt
|
||||||
|
|
||||||
COPY ui/prepare.sh /tmp
|
COPY ui/prepare.sh /tmp
|
||||||
RUN chmod +x /tmp/prepare && \
|
RUN chmod +x /tmp/prepare.sh && \
|
||||||
/tmp/prepare.sh && \
|
/tmp/prepare.sh && \
|
||||||
rm -f /tmp/prepare.sh
|
rm -f /tmp/prepare.sh
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user