Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
web-openccg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ease-ph
DeepLanguageUnderstanding
web-openccg
Commits
a912b210
Unverified
Commit
a912b210
authored
6 years ago
by
Sebastian Höffner
Browse files
Options
Downloads
Patches
Plain Diff
Building using customizable OpenCCG version.
parent
7094a918
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+18
-8
18 additions, 8 deletions
Dockerfile
Jenkinsfile
+1
-1
1 addition, 1 deletion
Jenkinsfile
Makefile
+5
-1
5 additions, 1 deletion
Makefile
with
24 additions
and
10 deletions
Dockerfile
+
18
−
8
View file @
a912b210
...
...
@@ -5,18 +5,28 @@ LABEL description="A small webapp to parse sentences using the DiaSpace grammar
LABEL
version="2.1"
ARG
GRAMMAR_VERSION=master
ARG
OPENCCG_VERSION=0.9.5
ARG
OPENCCG_LIB_VERSION=0.9.5
ARG
OPENCCG_REPOSITORY=https://github.com/OpenCCG/openccg
ARG
OPENCCG_VERSION=master
ARG
WCCG_POOL_SIZE=3
EXPOSE
5000 8080
ENV
OPENCCG_HOME /openccg
ENV
PATH "$OPENCCG_HOME/bin:$PATH"
ENV
LD_LIBRARY_PATH "$OPENCCG_HOME/lib:$LD_LIBRARY_PATH"
# Download and extract OpenCCG
RUN
curl
-o
openccg-
${
OPENCCG_VERSION
}
.tgz https://datapacket.dl.sourceforge.net/project/openccg/openccg/openccg%20v
${
OPENCCG_VERSION
}
%20-%20deplen%2C%20kenlm%2C%20disjunctivizer/openccg-
${
OPENCCG_VERSION
}
.tgz
\
&&
tar
zxf openccg-
${
OPENCCG_VERSION
}
.tgz
\
&&
rm
openccg-
${
OPENCCG_VERSION
}
.tgz
\
ENV
PATH "${OPENCCG_HOME}/bin:$PATH"
ENV
LD_LIBRARY_PATH "${OPENCCG_HOME}/lib:${LD_LIBRARY_PATH}"
ENV
WCCG_POOL_SIZE=${WCCG_POOL_SIZE}
# Download and extract OpenCCG -- first for libraries, then the requested source-code version
RUN
curl
-o
openccg-
${
OPENCCG_LIB_VERSION
}
.tgz https://datapacket.dl.sourceforge.net/project/openccg/openccg/openccg%20v
${
OPENCCG_LIB_VERSION
}
%20-%20deplen%2C%20kenlm%2C%20disjunctivizer/openccg-
${
OPENCCG_LIB_VERSION
}
.tgz
\
&&
tar
zxf openccg-
${
OPENCCG_LIB_VERSION
}
.tgz
\
&&
rm
openccg-
${
OPENCCG_LIB_VERSION
}
.tgz
\
# Source code overwrites
&& curl -o openccg.zip -L ${OPENCCG_REPOSITORY}/archive/${OPENCCG_VERSION}.zip \
&& unzip openccg.zip \
&& rm openccg.zip \
&& cp -r openccg-*/* /openccg/ \
&& rm -r openccg-* \
# Download and extract grammar
&& curl -o grammar.zip -L https://github.com/shoeffner/openccg-gum-cooking/archive/${GRAMMAR_VERSION}.zip \
&& unzip -d /tmp grammar.zip \
...
...
This diff is collapsed.
Click to expand it.
Jenkinsfile
+
1
−
1
View file @
a912b210
...
...
@@ -4,7 +4,7 @@ pipeline {
stages
{
stage
(
'build'
)
{
steps
{
sh
'docker build . --no-cache --build-arg GRAMMAR_VERSION=legacy/grammar -t web-openccg:$(git rev-parse --short HEAD)'
sh
'docker build . --no-cache --build-arg
OPENCCG_REPOSITORY=https://github.com/shoeffner/openccg --build-arg OPENCCG_VERSION=feature/wccg-prompt --build-arg
GRAMMAR_VERSION=legacy/grammar -t web-openccg:$(git rev-parse --short HEAD)'
}
}
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
5
−
1
View file @
a912b210
...
...
@@ -5,7 +5,11 @@ webopenccg/generated_openccg_parser.py: OpenCCG.ebnf
.PHONY
:
build
build
:
docker build
.
--build-arg
GRAMMAR_VERSION
=
legacy/grammar
-t
web-openccg
docker build
.
\
--build-arg
OPENCCG_REPOSITORY
=
https://github.com/shoeffner/openccg
\
--build-arg
OPENCCG_VERSION
=
feature/wccg-prompt
\
--build-arg
GRAMMAR_VERSION
=
legacy/grammar
\
-t
web-openccg
webopenccg/static/%.js
:
docker run
--rm
--detach
--name
web-openccg-build-
$(
notdir
$@
)
web-openccg
...
...
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