Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
swmodd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LCM
swmodd
Commits
949d4151
Unverified
Commit
949d4151
authored
1 year ago
by
Vivek Dutta
Browse files
Options
Downloads
Patches
Plain Diff
Example oci container for ACS
parent
f73adba3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#112218
passed with warnings
1 year ago
Stage: oci_sulu
Stage: static_code_analysis
Stage: api_test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/acs/Dockerfile
+53
-0
53 additions, 0 deletions
examples/acs/Dockerfile
examples/acs/acs.conf
+14
-0
14 additions, 0 deletions
examples/acs/acs.conf
examples/acs/supervisord.conf
+19
-0
19 additions, 0 deletions
examples/acs/supervisord.conf
with
86 additions
and
0 deletions
examples/acs/Dockerfile
0 → 100644
+
53
−
0
View file @
949d4151
FROM
ubuntu:20.04
LABEL
maintainer="vivek.dutta@iopsys.eu"
LABEL
build="docker build -t acs ."
# docker build -t acs .
# docker images
RUN
\
apt-get update
&&
\
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-y
\
# General tools
apt-utils \
apt-transport-https \
git \
libssl-dev \
build-essential \
curl \
iputils-ping \
net-tools \
pkg-config \
sudo \
supervisor \
wget \
mongodb
# install node
ARG
NODEJS_VERSION_MAJOR=16
RUN
curl
-fsSL
"https://deb.nodesource.com/setup_
${
NODEJS_VERSION_MAJOR
}
.x"
| bash -
&&
\
apt-get
install
-y
nodejs
&&
\
npm
install
--global
typescript yarn
&&
\
rm
-rf
/var/lib/apt/lists/
*
# install yarn
RUN
npm
install
--global
"yarn"
# install tap-junit
ARG
GENIE_VERSION=1.2.9
RUN
npm
install
--global
"genieacs@
${
GENIE_VERSION
}
"
# Prepare supervisor
RUN
mkdir
-p
/var/log/supervisor
&&
\
mkdir
-p
/etc/supervisor/conf.d/
&&
\
mkdir
-p
/data/db
COPY
supervisord.conf /etc/supervisor/
COPY
acs.conf /etc/supervisor/conf.d/
EXPOSE
3000
EXPOSE
7547
# Start entrypoint
ENTRYPOINT
["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]
This diff is collapsed.
Click to expand it.
examples/acs/acs.conf
0 → 100644
+
14
−
0
View file @
949d4151
[
program
:
mongod
]
command
=/
bin
/
bash
-
c
"/usr/bin/mongod"
[
program
:
genieacs_cwmp
]
command
=/
bin
/
bash
-
c
"/usr/bin/genieacs-cwmp"
[
program
:
genieacs_fs
]
command
=/
bin
/
bash
-
c
"/usr/bin/genieacs-fs"
[
program
:
genieacs_nbi
]
command
=/
bin
/
bash
-
c
"/usr/bin/genieacs-nbi"
[
program
:
genieacs_ui
]
command
=/
bin
/
bash
-
c
"/usr/bin/genieacs-ui --ui-jwt-secret secret"
This diff is collapsed.
Click to expand it.
examples/acs/supervisord.conf
0 → 100644
+
19
−
0
View file @
949d4151
[
supervisord
]
logfile
=/
var
/
log
/
supervisor
/
supervisord
.
log
; (
main
log
file
;
default
$
CWD
/
supervisord
.
log
)
pidfile
=/
var
/
run
/
supervisord
.
pid
; (
supervisord
pidfile
;
default
supervisord
.
pid
)
childlogdir
=/
var
/
log
/
supervisor
; (
'AUTO'
child
log
dir
,
default
$
TEMP
)
nodaemon
=
false
;
true
to
run
in
foreground
[
unix_http_server
]
file
=/
var
/
run
/
supervisor
.
sock
; (
the
path
to
the
socket
file
)
chmod
=
0700
;
sockef
file
mode
(
default
0700
)
[
rpcinterface
:
supervisor
]
supervisor
.
rpcinterface_factory
=
supervisor
.
rpcinterface
:
make_main_rpcinterface
[
supervisorctl
]
serverurl
=
unix
:///
var
/
run
/
supervisor
.
sock
;
use
a
unix
://
URL
for
a
unix
socket
;
enables
us
to
add
additional
applications
in
a
convenient
way
[
include
]
files
= /
etc
/
supervisor
/
conf
.
d
/*.
conf
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment