mirror of
https://github.com/ru-de/faq.git
synced 2024-12-22 08:51:49 +00:00
fix docker-compose local
This commit is contained in:
parent
6da1b22184
commit
d08c98ae7d
@ -2,7 +2,6 @@ language: go
|
||||
sudo: required
|
||||
|
||||
dist: trusty
|
||||
group: deprecated-2017Q4
|
||||
|
||||
git:
|
||||
depth: 3
|
||||
|
@ -1,9 +1,10 @@
|
||||
# check https://docs.travis-ci.com/user/common-build-problems/#Running-a-Container-Based-Docker-Image-Locally
|
||||
# check https://docs.travis-ci.com/user/common-build-problems/#troubleshooting-locally-in-a-docker-image
|
||||
FROM travisci/ci-garnet:packer-1512502276-986baf0
|
||||
MAINTAINER Evgenii Sokolov <e.sokolov@sevensenders.com>
|
||||
|
||||
USER travis
|
||||
ENV GOPATH "/home/travis/gopath"
|
||||
ENV GOROOT "/home/travis/.gimme/versions/go1.7.4.linux.amd64"
|
||||
ENV PATH "$GOPATH/bin:$GOROOT/bin:$PATH"
|
||||
COPY check-install.sh /tmp
|
||||
RUN bash /tmp/check-install.sh
|
||||
COPY . $GOPATH/src/github.com/ru-de/faq/files
|
||||
RUN cd $GOPATH/src/github.com/ru-de/faq && sudo env PATH=$PATH GOPATH=$GOPATH bash files/check-install.sh
|
||||
|
@ -29,6 +29,12 @@ for dic in $dicList
|
||||
cat /usr/share/hunspell/$dic.aff | iconv --from ISO8859-1 --to UTF-8 | sed 's/SET ISO8859-1/SET UTF-8/' > /usr/share/hunspell/$dic-utf8.aff
|
||||
done
|
||||
|
||||
(cat $DIR/dictionary.dic; echo) | sed '/^$/d' | wc -l > /tmp/dictionary.dic
|
||||
(cat $DIR/dictionary.dic; echo) | sed '/^$/d' >> /tmp/dictionary.dic
|
||||
|
||||
echo "SET UTF-8" >> /tmp/dictionary.aff
|
||||
mv /tmp/dictionary.* /usr/share/hunspell
|
||||
|
||||
go get ./...
|
||||
go get -u github.com/ewgRa/ci-utils/cmd/diff_liner
|
||||
go get -u github.com/ewgRa/ci-utils/cmd/hunspell_parser
|
||||
@ -37,9 +43,3 @@ go get -u github.com/ewgRa/ci-utils/cmd/github_comments_send
|
||||
|
||||
go build -o /tmp/check_spell $DIR/go/check_spell/main.go
|
||||
go build -o /tmp/check_links $DIR/go/check_links/main.go
|
||||
|
||||
(cat $DIR/dictionary.dic; echo) | sed '/^$/d' | wc -l > /tmp/dictionary.dic
|
||||
(cat $DIR/dictionary.dic; echo) | sed '/^$/d' >> /tmp/dictionary.dic
|
||||
|
||||
echo "SET UTF-8" >> /tmp/dictionary.aff
|
||||
sudo mv /tmp/dictionary.* /usr/share/hunspell
|
||||
|
Loading…
Reference in New Issue
Block a user