Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
discourse
Manage
Activity
Members
Labels
Plan
Issues
9
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
libre.sh
docker
discourse
Commits
9b63e854
Commit
9b63e854
authored
3 years ago
by
Pierre Ozoux
Browse files
Options
Downloads
Patches
Plain Diff
Use pngcrush from package manager.
parent
4a69acfb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#654
canceled with stage
in 3 minutes and 14 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
install/pngcrush
+0
-9
0 additions, 9 deletions
install/pngcrush
with
1 addition
and
10 deletions
Dockerfile
+
1
−
1
View file @
9b63e854
...
@@ -48,6 +48,7 @@ RUN curl http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | apt-key add - \
...
@@ -48,6 +48,7 @@ RUN curl http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | apt-key add - \
nodejs
\
nodejs
\
optipng
\
optipng
\
jhead
\
jhead
\
pngcrush
\
pngquant
\
pngquant
\
postgresql-client-
${
PG_MAJOR
}
\
postgresql-client-
${
PG_MAJOR
}
\
postgresql-contrib-
${
PG_MAJOR
}
libpq-dev libreadline-dev
\
postgresql-contrib-
${
PG_MAJOR
}
libpq-dev libreadline-dev
\
...
@@ -66,7 +67,6 @@ RUN curl http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | apt-key add - \
...
@@ -66,7 +67,6 @@ RUN curl http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | apt-key add - \
&&
/tmp/install/imagemagick
\
&&
/tmp/install/imagemagick
\
# Validate install
# Validate install
&& ruby -Eutf-8 -e "v = \`convert -version\`; %w{png tiff jpeg freetype}.each { |f| unless v.include?(f); STDERR.puts('no ' + f + ' support in imagemagick'); exit(-1); end }" \
&& ruby -Eutf-8 -e "v = \`convert -version\`; %w{png tiff jpeg freetype}.each { |f| unless v.include?(f); STDERR.puts('no ' + f + ' support in imagemagick'); exit(-1); end }" \
&& /tmp/install/pngcrush \
&& addgroup --gid 1000 discourse \
&& addgroup --gid 1000 discourse \
&& adduser --system --uid 1000 --ingroup discourse --shell /bin/bash discourse \
&& adduser --system --uid 1000 --ingroup discourse --shell /bin/bash discourse \
&& cd /home/discourse \
&& cd /home/discourse \
...
...
This diff is collapsed.
Click to expand it.
install/pngcrush
deleted
100755 → 0
+
0
−
9
View file @
4a69acfb
#!/bin/bash -e
cd
/tmp
wget https://sourceforge.net/projects/pmt/files/pngcrush/
$PNGCRUSH_VERSION
/pngcrush-
$PNGCRUSH_VERSION
.tar.gz/download
-O
pngcrush-
$PNGCRUSH_VERSION
.tar.gz
tar
zxf pngcrush-
$PNGCRUSH_VERSION
.tar.gz
cd
pngcrush-
$PNGCRUSH_VERSION
make
&&
cp
-f
pngcrush /usr/local/bin
cd
/
rm
-fr
/tmp/pngcrush-
$PNGCRUSH_VERSION
rm
/tmp/pngcrush-
$PNGCRUSH_VERSION
.tar.gz
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