aboutsummaryrefslogtreecommitdiffstats
path: root/.devcontainer/Dockerfile
blob: 4374d03954f71658ad8163a158fac9a560694a0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM ubuntu:focal

ARG DEBIAN_FRONTEND=noninteractive

# PHP
RUN apt-get update -y
RUN apt-get install --no-install-recommends -y \
    php7.4 \
    php7.4-gd \
    php7.4-zip \
    php7.4-curl \
    php7.4-xml \
    php7.4-mbstring \
    php7.4-sqlite \
    php7.4-xdebug \
    php7.4-pgsql \
    php7.4-intl \
    php7.4-imagick \
    php7.4-gmp \
    php7.4-apcu \
    php7.4-bcmath \
    libmagickcore-6.q16-3-extra \
    curl \
    vim \
    lsof \
    make \
    nodejs \
    npm

RUN echo "xdebug.remote_enable = 1" >> /etc/php/7.4/cli/conf.d/20-xdebug.ini
RUN echo "xdebug.remote_autostart = 1" >> /etc/php/7.4/cli/conf.d/20-xdebug.ini

# Docker
RUN apt-get -y install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
RUN add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
RUN apt-get update -y
RUN apt-get install -y docker-ce docker-ce-cli containerd.io
RUN ln -s /var/run/docker-host.sock /var/run/docker.sock  
tate.setPortraitRotation(rotation); } /** * Sets the rotation to be used for landsacpe pages, valid values are 0, 90, * 180, 270 (default). * * @param rotation * The rotation in degrees. */ public void setLandscapeRotation(int rotation) { state.setLandscapeRotation(rotation); } /** * Sets the number of bits used per pixel * * @param bitsPerPixel * number of bits per pixel */ public void setBitsPerPixel(int bitsPerPixel) { state.setBitsPerPixel(bitsPerPixel); } /** * Sets whether images are color or not * * @param colorImages * color image output */ public void setColorImages(boolean colorImages) { state.setColorImages(colorImages); } /** * Returns the AFPDataStream * * @return the AFPDataStream */ public DataStream getAFPDocumentStream() { return this.dataStream; } /** * Sets the output/device resolution * * @param resolution * the output resolution (dpi) */ public void setResolution(int resolution) { state.setResolution(resolution); } /** * Returns the output/device resolution. * * @return the resolution in dpi */ public int getResolution() { return state.getResolution(); } /** * Returns the current AFP state * * @return the current AFP state */ public AbstractState getState() { return this.state; } // TODO: remove this and use the superclass implementation /** {@inheritDoc} */ protected void renderReferenceArea(Block block) { // save position and offset int saveIP = currentIPPosition; int saveBP = currentBPPosition; //Establish a new coordinate system AffineTransform at = new AffineTransform(); at.translate(currentIPPosition, currentBPPosition); at.translate(block.getXOffset(), block.getYOffset()); at.translate(0, block.getSpaceBefore()); if (!at.isIdentity()) { saveGraphicsState(); concatenateTransformationMatrix(at); } currentIPPosition = 0; currentBPPosition = 0; handleBlockTraits(block); List children = block.getChildAreas(); if (children != null) { renderBlocks(block, children); } if (!at.isIdentity()) { restoreGraphicsState(); } // stacked and relative blocks effect stacking currentIPPosition = saveIP; currentBPPosition = saveBP; } /** * Sets the default resource group file path * @param filePath the default resource group file path */ public void setDefaultResourceGroupFilePath(String filePath) { resourceManager.setDefaultResourceGroupFilePath(filePath); } }