Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
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
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
docker
osticket
Commits
015af5b7
Commit
015af5b7
authored
5 years ago
by
Alexey Kuklin
Browse files
Options
Downloads
Patches
Plain Diff
ci added
parent
1639a6c7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+50
-0
50 additions, 0 deletions
.gitlab-ci.yml
Dockerfile
+17
-0
17 additions, 0 deletions
Dockerfile
with
67 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
50
−
0
View file @
015af5b7
image
:
docker:latest
services
:
-
docker:dind
stages
:
-
build
-
manifest
variables
:
DOCKER_CONFIG
:
~/.docker/$CI_JOB_ID
IMAGE_amd64
:
$CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/amd64:$CI_COMMIT_REF_NAME
IMAGE_ppc64le
:
$CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/ppc64le:$CI_COMMIT_REF_NAME
MANIFEST
:
$CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
before_script
:
-
"
[
-d
$DOCKER_CONFIG
]
||
mkdir
-p
$DOCKER_CONFIG"
-
"
echo
'{
\"
experimental
\"
:
\"
enabled
\"
}'
>
$DOCKER_CONFIG/config.json"
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
-
docker login $REGISTRY_TECH_URL --username $REGISTRY_TECH_USER --password $REGISTRY_TECH_PASS
after_script
:
-
"
rm
-vRf
$DOCKER_CONFIG"
ppc64le
:
stage
:
build
tags
:
-
ppc64le
script
:
-
docker build --build-arg CI_COMMIT_SHA=$CI_COMMIT_SHA --build-arg CI_COMMIT_REF_NAME=$CI_COMMIT_REF_NAME --build-arg CI_PROJECT_NAME=$CI_PROJECT_NAME --build-arg GITLAB_LOGIN=gitlab-ci-token --build-arg GITLAB_PASSWORD=$CI_JOB_TOKEN --pull -t $IMAGE_ppc64le -f Dockerfile .
-
docker push $IMAGE_ppc64le
amd64
:
variables
:
stage
:
build
tags
:
-
amd64
script
:
-
docker build --build-arg CI_COMMIT_SHA=$CI_COMMIT_SHA --build-arg CI_COMMIT_REF_NAME=$CI_COMMIT_REF_NAME --build-arg CI_PROJECT_NAME=$CI_PROJECT_NAME --build-arg GITLAB_LOGIN=gitlab-ci-token --build-arg GITLAB_PASSWORD=$CI_JOB_TOKEN --pull -t $IMAGE_amd64 -f Dockerfile .
-
docker push $IMAGE_amd64
manifest
:
stage
:
manifest
tags
:
-
amd64
script
:
-
docker manifest create $MANIFEST $IMAGE_amd64 $IMAGE_ppc64le
-
docker manifest annotate $MANIFEST $IMAGE_amd64 --os linux --arch amd64
-
docker manifest annotate $MANIFEST $IMAGE_ppc64le --os linux --arch ppc64le
-
docker manifest push $MANIFEST
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
17
−
0
View file @
015af5b7
FROM
debian
RUN
apt-get update
&&
apt-get
install
-y
apache2 libapache2-mod-php7.3 php7.3-mysql php-gd php-imap php-xml php-mbstring php-intl php-apcu
ADD
. /var/www/html/.
COPY
apache2-foreground /usr/local/bin/
WORKDIR
/var/www/html
EXPOSE
80
CMD
["apache2-foreground"]
VOLUME
/var/log/apache2
VOLUME
/var/lib/php/sessions
VOLUME
/var/run
RUN
rm
-Rf
setup
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