
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
This Docker image intends to be containerized mimic solution of Acquia environment.
The source code is available under GPLv3 at Bitbucket in this https://bitbucket.org/ciandt_it/docker-hub-acquia.
Our intent is to have a Docker container that mimics Acquia environment with the same version of softwares and OS.
Utilizing Docker technologies that already provides an easy way of spinning up new environments and its dependecies, this image can speed-up developers which different backgrounds and equipments to have a fast local environment allowing them to easily integrate in automated tests and deployment pipelines.
Keeping it short, this image contains the same working set of Ubuntu, Apache and PHP that Acquia utilizes. Plus, there are also pre-loaded scripts that can easily customized to install other components if they are required like Drush, Grunt, etc...
Download the image
docker pull ciandtsoftware/acquia:2016-11-08
Run a container
docker run \ --volume /your/code/folder/before/docroot:/var/www/html \ --volume /your/file/server/mounted/folder:/nfs \ --name myContainer \ --detach \ ciandtsoftware/acquia:2016-11-08
Check running containers
docker ps --all
These are the currently versions bundled in this image.
Already installed
Pre-loaded scripts for customization
If you just need the container there is a snippet that can help running in standalone mode.
# define variables HOST_CODE_FOLDER=""${HOME}"/workspace/mySite" HOST_FILES_FOLDER=""${HOME}"/workspace/myNFSstorage" DOCKER_CONTAINER_NAME="myContainer" DOCKER_IMAGE="ciandtsoftware/acquia:2016-11-08" # run your container docker run \ --volume "${HOST_CODE_FOLDER}":/var/www/html \ --volume "${HOST_FILES_FOLDER}":/nfs \ --name "${DOCKER_CONTAINER_NAME}" \ --detach \ "${DOCKER_IMAGE}"
After run, you can inquiry Docker service and get the IP address of your newly running container named myContainer by using the following command:
docker inspect --format '{{ .NetworkSettings.IPAddress }} myContainer'
Let's suppose that the returned IP address was 172.17.0.2. Just open a browser and try to access:
[***]
Your website should be displayed perfectly.
As intended, you can take advantage from this image to build your own and already configure everything that a project requires.
CI&T scripts
There are available scripts to help customization:
Scripts are composed by two parts;
The script-name .env contains the variables that script-name .sh requires to perform its task.
All scripts are located inside folder /root/ciandt and must be declared in the Makefile. Thus, it is easy to run any of them and have its dependency.
Just to give an quick example, you can create your own Docker image based on this one that already ships Drush installed as well. A Dockerfile performing it could be like:
FROM ciandtsoftware/acquia:2016-11-08 # installs required package RUN apt-get update \ && apt-get install \ --no-install-recommends \ --assume-yes \ make # defines Drush version ENV DRUSH_VERSION 8.1.3 # installs Drush RUN cd /root/ciandt \ && make install-drush
Then you just need to build / run your new customized Docker image and you are ready to go.
Since a project is not going to use solely this container, it may need a Docker-Compose file.
Just to exercise, follow an example of this running customized and als behind a Nginx proxy.
Create a new folder and fill with these 3 files and respective folders;
conf/acquia.local.env
## Nginx proxy configuration # https://hub.docker.com/r/jwilder/nginx-proxy/ VIRTUAL_HOST=mySite.local
app/acquia/Dockerfile
FROM ciandtsoftware/acquia:2016-11-08 # installs required package RUN apt-get update \ && apt-get install \ --no-install-recommends \ --assume-yes \ make # defines Drush version ENV DRUSH_VERSION 8.1.3 # installs Drush RUN cd /root/ciandt \ && make install-drush
docker-compose.yml
acquia: build: ./acquia container_name: acquia env_file: ../conf/acquia.local.env nginx: image: jwilder/nginx-proxy:latest container_name: nginx volumes: - /var/run/docker.sock:/tmp/docker.sock:ro ports: - "80:80" - "443:443"
Then just spin-up your Docker-Compose with the command:
docker-compose up -d
Inspect Nginx container IP address:
docker inspect \ --format \ "{{.NetworkSettings.Networks.bridge.IPAddress }}" \ "nginx"
Use the IP address to update hosts file. Let's suppose that was 172.17.0.2.
Then, add an entry to /etc/hosts.
172.17.0.2 acquia.local
And now, try to access in the browser
[***]
Voilà! Your project now have Nginx and Acquia up and running. \o/
If you want to contribute, suggest improvements and report issues, please go to our https://bitbucket.org/ipinatti_cit/docker-hub-acquia.
Please feel free to drop a message in the comments section.
Happy coding, enjoy!!
"We develop people before we develop software" - Cesar Gon, CEO
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务